- 论坛徽章:
- 0
|
FATAL ERROR: Could not find /home/mysql/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.
这个错误,是没有指明mysql的date路径导致的,可以很简单的进行解决:
vim /etc/my.cnf
在[mysld] 后面加上路径:
basedir = /usr/local/mysql
datadir =/opt/data
百度上看到的,但是首先在my.cnf里就没有[mysld],只有[mysqld]
然后我在[mysqld]下面加了basedir = /usr/local/mysql和datadir =/opt/data根本也没用
我是通过ports直接make install clean的,然后cp /usr/local/share/mysql/my-large.cnf /etc/my.cnf
之后就vi /etc/rc.conf;mysql_enable="YES"
接着/usr/local/bin/mysql_install_db的时候就报错了Could not find /home/mysql/bin/my_print_defaults
到底该怎么办呢。。。求助!谢谢! |
|