我得到當我嘗試做一個重新開始與MySQL以下奇錯誤:mysql.server的重啓提供了錯誤信息
$ 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.
有什麼建議嗎?