当前位置:首页 > Mysql教程 > 列表

mysql 安装错误 Could not find ./bin/my_print_defaults解决办法

发布:smiling 来源: PHP粉丝网  添加日期:2014-10-05 16:28:49 浏览: 评论:0 

今天本人在linux下安装mysql时提示 Could not find ./bin/my_print_defaults,后来搜索了一些解决方法分离给大家,有碰到此类问题的朋友可参考.

错误提示: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.

原因分析:如果用/usr/local/mysql/scripts/mysql_install_db --user=mysql

解决方法:[root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &(这点非常重要.

Tags: mysql安装错误 my_print_defaults

分享到: