现在的位置: 首页学习笔记>正文
mysql 安装错误 Could not find ./bin/my_print_defaults..解决方法
2012年04月18日 学习笔记 评论关闭

在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' 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.
解决方法是
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

抱歉!评论已关闭.

×
腾讯微博