Mac下MySql卸载方法
MAC系统中MySQL有dmg安装文件,但是没有卸载程序,只能手动卸载,比较麻烦
卸载过程:
先停止所有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.*
?