Mac下卸载mysql的方法:
1、关闭mysql
查看mysql是否启动:ps -ef |grep mysql
输入:kill -9 (./mysqld前面第二个数字,这里是627) 然后回车,关闭mysql。
2、卸载:
在Mac终端使用下面的命令删除所有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.*
推荐:MySQL教程