Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 27 '12 at 15:55

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

1 Answer 1

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 at 14:47

Your Answer

 
discard

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.