教学之友,学习之友。

站长教学网

当前位置: 站长教学网 > 数据库 > MYSQL教程 >

安装mysql_install_db提示Could not find my_print_defaults

时间:2012-10-15 16:27来源:未知 作者:ken 点击:

mysql/scripts/mysql_install_db --defaults-file=/data/mysql/my.cnf --basedir=/usr/local/mysql --datadir=/data/mysql/data --user=mysql

FATAL ERROR: Could not find my_print_defaults

The following directories were searched:

    /usr/local/mysql/bin
    /usr/local/mysql/extra

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.

解决办法:应正确指定安装路径,数据存放路径,有时候可能是路径指定错了 我就遇到过这样
scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
 

(责任编辑:ken)
TAG标签: mysql cmake
顶一下
(2)
14.3%
踩一下
(12)
85.7%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
注册登录:不允许匿名留言,登录后留言无需输入验证码。
栏目列表
最新内容