不知道为什么,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了