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?

link|improve this question

feedback

migrated from stackoverflow.com Jan 27 at 15:55

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

1 Answer

up vote 0 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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