Wednesday, July 20, 2011

How to uninstall Mysql in MacOS

Do this command first:
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-

Then do the following lines:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
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.*
sudo rm /etc/my.cnf
rm -rf ~/Library/PreferencePanes/My*

Do not forget to remove the my.cnf file.

1 comment:

  1. One more line should add:
    rm -rf ~/Library/PreferencePanes/My*

    ReplyDelete