Saturday, March 3, 2012

Uninstall MySQL from Mac OS X

Once again, the Mac's loose integration with a lot of software due to its Unix-wannabe attitude causes user-unfriendliness issues. How to uninstall MySQL from Mac OS X?


One Google search finds the following:


sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
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 vim /etc/hostconfig # and remove the line MYSQLCOM=-YES-


Works well enough for me.