Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I accidentally installed the binary package of MySql on my Mac OS X.

Now I don't see anything about MySql. How can I uninstall it?

share|improve this question

migrated from Jan 27 '12 at 15:55

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

After some more research I found this series of commands. Actually I don't like this kind of hacking, but it seams to remove MySQL successfully.

To uninstall MySQL and completely remove it (including all databases) from your Mac do the following:

Use mysqldump to backup your databases to text files! Stop the database server

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*

Edit /etc/hostconfig and remove the line MYSQLCOM=-YES-

rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*

I was able to install XAMPP afterwards and start this MySql installation without problems.

share|improve this answer
3rd time this week I've had to do this, Mavericks on retina keeps locking up >:-( – Raymond Jan 10 '14 at 14:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.