Home How do you uninstall MySQL from Mac OS X?
Reply: 0

How do you uninstall MySQL from Mac OS X?

user7615 Published in September 19, 2018, 6:49 pm

I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly. I just didn't pay enough attention. Now when I try to install the correct x86 version it says that it can't install because a newer version is already installed. A Google query led me to perform these actions/delete these files to uninstall it:

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
rm -rf ~/Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*

And finally removed the line MYSQLCOM=-YES- from /etc/hostconfig

They haven't seemed to help at all. I am still receiving the same message about there being a newer version. I tried installing an even newer version (the current Beta) and it also gave me the same message about a newer version already being installed. I can't uninstall it from the Prefs Pane because I never installed the PrefPane also.

share|improve this question
  • 26
    sudo rm -rf lines with wildcards are a little irresponsible. Especially when you cast the net widely enough to delete anything starting with the letters "My" -- MySQL doesn't have exclusive ownership over the word "My" in its title. – Eric Goldberg Mar 12 '12 at 22:49
  • 4
    I'd also suggest backing up /usr/local/mysql/data first -- many people might not realize that that's where mysql keeps its data on mac. – Michael Scott Cuthbert Aug 21 '14 at 21:17

11 Answers 11

active oldest votes
up vote 214 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.405769 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO