Uninstalling MySQL on Mac OS X involves manually removing following directories and files from your drive.
Assuming your MySQL is installed in
/usr/local, perform the following steps:
sudo rm mysqlremoves the symbolic link to the actual mysql installation. You may be prompted for your administrator’s password at this point.
sudo rm -rf mysql-5.1.47-osx10.6-x86/removes the actual mysql installation. You may have a different version of mysql installed on your system.
sudo rm -rf /Library/StartupItems/MySQLCOMremoves the MySQL startup option.
rm -rf ~/Library/PreferencePanes/My*removes preference panes.
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
I was hoping for a much simpler process for cleanly uninstalling MySQL from my system.
Thanks to Rob Allen for this tip: Rob Allen’s DevNotes