使用
sudo rm /etc/my.cnf
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
这些命令卸载完后,使用终端查看 Mysql -V,显示
mysql Ver 14.14 Distrib 5.7.11, for osx10.11 (x86_64) using EditLine wrapper,求大神解答
已经解答