FATAL ERROR: Could not find ./bin/my_print_defaults 解决方法

[root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql&
[1] 16874
[root@bogon scripts]#
FATAL ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

解决方法:

[root@bogon scripts] /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data 

注意:

其中的--basedir 和--datadir 更改成自己所设置的位置,且如果不为系统默认目录则必须填写。


by 雪洁 2014-06-07 04:14:28 2891 views
我来说几句

相关文章