不知道為什麼,mysql沒法啟動了,試了很多種方法,最後決定還是重灌吧- –
先解除安裝mysql
-
sudo rm /usr/local/mysql (這一步: 必須的)
-
sudo rm -rf /usr/local/mysql* (這一步: 必須的)
-
sudo rm -rf /Library/StartupItems/MySQLCOM (這一步: 可選)
-
sudo rm -rf /Library/PreferencePanes/My* (這一步: 可選)
-
vim /etc/hostconfig (and removed the line MYSQLCOM=-YES-) (這一步: 可選)
-
rm -rf ~/Library/PreferencePanes/My*
-
sudo rm -rf /Library/Receipts/mysql*
-
sudo rm -rf /Library/Receipts/MySQL*
-
sudo rm -rf /var/db/receipts/com.mysql.*
解除安裝完然後重灌就OK了