mysql_install_db 出错

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.


mysql出现如上错误一般不是它提示的没有make install 或者要--basedir有问题,而是在/etc/my.cnf中有个配置错误导致的.

本实例的处理办法:
bin/mysql_install_db  --basedir=/usr/local/webserver/mysql5.1.57 --datadir=/data/mysql5.1.57/data --user=mysql

你可能感兴趣的:(mysql)