mysql 安装错误 Could not find ./bin/my_print_defaults

作者:来源:2011-03-24 05:38:03我要评论( 6)

核心提示:如果用/usr/local/mysql/scripts/mysql_install_db --user=mysql
有可能会报如下错误:
FATAL ERROR: Could not find ./bin/my_print_defaults
If you are using a binary r

如果用/usr/local/mysql/scripts/mysql_install_db --user=mysql
有可能会报如下错误:
FATAL ERROR: Could not find ./bin/my_print_defaults
If you are using a binary release, you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
解决办法:应指定安装路径,数据存放路径
scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data


转载自http://blog.sina.com.cn/s/blog_3f4f9c740101h0sj.html