代码改变世界

mac 下安装和卸载 mysql

2013-11-08 01:13  waddell  阅读(617)  评论(0编辑  收藏  举报

这里有一篇文章写得很详细:

http://www.cnblogs.com/macro-cheng/archive/2011/10/25/mysql-001.html

关于卸载,我也百度了下。找了好几个地方才找到正确的卸载办法。

贴出来共享之,也方便日后自己使用。

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.*