Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to get a working copy of MAMP. But I once installed the MySQL server seperately, and I can't find a way to uninstall.

enter image description here enter image description here

How can I uninstall this version of MySQL?

share|improve this question
2  
Have a look at this answer on superuser: superuser.com/questions/129193/… –  Gerry Apr 3 '12 at 20:56
add comment

2 Answers

up vote 2 down vote accepted

The answer to this superuser question and this stackoverflow question both say approximately the same thing, that you need to perform the following actions:

If you haven't yet rebooted your computer, the process could still be running. First, reboot.

Then if MySQL is still showing up after a reboot, from the Terminal, issue the following commands one at a time:

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

And using your text editor of choice:

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

If you still cannot install or run a different version of MySQL, you might have to issue one last command in the Terminal:

  • sudo rm -rf /var/db/receipts/com.mysql.mysql*
share|improve this answer
    
OK, great. I was able to install a different version of MySQL. But the icon still appears in the system preferences, any thought why? –  Michiel Apr 4 '12 at 6:58
    
@Michiel So you've now got two MySQL icons in System Preferences? What happens if you right click on the old icon and select Remove "MySQL" Preference Pane? –  binarybob Apr 4 '12 at 7:44
    
Ok, this is cool :) I didn't know it was possible to manually delete the icon. I've got another MySQL installed and the icon doesn't show up in my System Preferences anymore. So, problem solved! Thanks –  Michiel Apr 4 '12 at 7:46
add comment

You should check the following folders:

  • /Applications
  • /Developer
  • /Library
  • /System/Library
  • /Users/your_user/Applications

It's bound to be in one of them!

Once you find the app, I suggest using AppZapper to completely remove it.

Updated: If you still can't find it open the terminal and run:

sudo find / -name "mysql

If there's any mysql executable in your computer it will find it

share|improve this answer
    
Thanks, but there is no MySQL file and or folder in either of these folders. –  Michiel Apr 3 '12 at 20:55
    
I've updated the answer with an additional step, try it out. –  Alex Apr 4 '12 at 0:35
add comment

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.