1.先停止所有mysql有关进程
2.sudo rm /usr/local/mysql
3.sudo rm -rf /usr/local/mysql*
4.sudo rm -rf /Library/StartupItems/MySQLCOM
5.sudo rm -rf /Library/PreferencePanes/My*
6.sudo vi /etc/hostconfig # removed the line MYSQLCOM=-YES-
7.rm -rf ~/Library/PreferencePanes/My*
8.sudo rm -rf /Library/Receipts/mysql*
9.sudo rm -rf /Library/Receipts/MySQL*
10.sudo rm -rf /var/db/receipts/com.mysql.*