0

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?

1 Answer 1

1

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .