【发布时间】:2015-06-22 01:07:53
【问题描述】:
当我尝试使用 MySQL 重新启动时,出现以下奇怪的错误:
$ sudo mysql.server stop
Password:
Shutting down MySQL
.. SUCCESS!
$ sudo mysql.server start
Starting MySQL
SUCCESS!
$ sudo mysql.server restart
Shutting down MySQL
.. SUCCESS!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/my.local.pid).
我在这里看了答案:PID error on mysql.server start?
但我收到以下错误:
$ mysql_install_db
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.
有什么建议吗?
【问题讨论】: