Uninstall MySQL from Mac OS X Yosemite 10.10

To uninstall MySQL from your Mac first backup your databases and then stop your MySQL server.

In the terminal run these commands.

sudo /usr/local/mysql/support-files/mysql.server stop
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 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*
sudo rm -rf /var/db/receipts/com.mysql.*

You may see errors if your copy of MySQL is configured differently but this will cover most or all uninstallation.

For later versions of OSX there is a great answer on superuser.com for uninstalling MySQL. The main difference in older versions of Mac OS X is the use of the /etc/hostconfig file.

Once you are finished uninstalling MySQL restart your Mac.

Author: Kevin

Howdy, I’m Kevin Dees. I’m the founder of Robojuice. It is a web strategy company focused on delivering a refined experience to partners. I’m also the creator of TypeRocket for WordPress.