MAC系统中MySQL有dmg安装文件,但是没有卸载程序,只能手动卸载,比较麻烦
卸载过程:
系统偏好-》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*
用vi打开文件sudo vim /etc/hostconfig 删除这一行MYSQLCOM=-YES-
然后按esc退出到命令模式,输入:wq!回车保存(记得用sudo管理员权限,不然保存时会提示无法修改。)
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.*
原文地址:http://lwb6565.blog.51cto.com/7256662/1577324