码迷,mamicode.com
首页 > 数据库 > 详细

mysql / mysqld_safe / mysqld 常见错误处理

时间:2015-10-25 12:03:45      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

1. FATAL ERROR: Could not find ./bin/my_print_defaults

[root@localhost scripts]# ./mysql_install_db  --user=mysql --datadir=/var/lib/mysql
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@localhost scripts]# ./mysql_install_db  --user=mysql --datadir=/var/lib/mysql --basedir=/usr/local/mysql

指定 --basedir

2.

mysql / mysqld_safe / mysqld 常见错误处理

标签:

原文地址:http://www.cnblogs.com/digdeep/p/4908353.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!