在mysql安装过程 使用
/usr/local/mysql/scripts/mysql_install_db --user=mysql
时出现Could not find ./bin/my_print_defaults出现如下错误提示:
If you compiled from source, you need to run 'make install' tocopy the software into the correct location ready for operation.If you are using a binary release, you must either be at the toplevel of the extracted archive, or pass the --basedir optionpointing to that location.
解决方法是
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data