我正在尝试在我的计算机上重新安装mysql(os x mavericks)并且我已完成以下错误:
bash <(curl -Ls http://git.io/eUx7rg)
Run Code Online (Sandbox Code Playgroud)
错误:
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/mysql/data/christians-mbp.saumag.edu.pid).
/usr/local/mysql/support-files/mysql.server: line 362: pidof: command not found
/dev/fd/63: line 119: SORRY, MySQL IS NOT RUNNING ... THERE MUST BE A PROBLEM: command not found
Run Code Online (Sandbox Code Playgroud)
所以我决定看看卸载它,如果它已经存在:
brew uninstall mysql
bash <(curl -Ls http://git.io/eUx7rg)
Run Code Online (Sandbox Code Playgroud)
这说明mysql目前仍在安装,所以我做了以下事情:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
sudo rm -rf /Library/Receipts/mysql*
sudo …Run Code Online (Sandbox Code Playgroud)