这里有一篇文章写得很详细:
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.*