我得到一个错误,服务器退出没有更新pid文件。所以我想我应该卸载它并重新安装它。
我上次在homebrew中安装了它,所以我这样做了:
brew uninstall mysql
和安装它我做:
brew install mysql
即使在此之后,我仍然得到相同的错误。
$ mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/Tirths-MBP.fios-router.home.pid).
如果这个mysql像一个linux二进制文件;尝试使用mysqld_safe重新生成PID:
停止服务器bin>$./mysql.server stop
regen PID file:
bin>$./mysqld_safe -u youruser&
然后尝试启动mysql:
bin>$./mysql.server start
注。…你有没有生成etc/my.cnf
文件?如果您提供日志会更有帮助;
希望这有帮助;