Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have mysql installed on 10.6 Snow Leopard. The problem is that I cant stop the server. Its running all the time.

How can I solve that? I tried to install mysql again, but this didn't solve the problem. How about deinstalling the server? I read that I should turn the server of before deinstalling it, but that is exactly what I can't do...


share|improve this question
How does it start? This will show what user it is running as and what mechanism starts it – Mark Dec 14 '10 at 15:45
If you need root to do some actions, you will get ask for the root password. Mac handles this by itself... – Markus Dec 14 '10 at 15:45
you need to tell us how it starts, which is easier to know if you can tell us how it was installed in the first place. Was it MacPorts, a stand-alone package, or something else? – user3463 Dec 14 '10 at 17:37

Did you try $ sudo mysqladmin shutdown?

If it's restarting itself, it might have a launchd job. You can use $ launchctl list to see every job on the system, perhaps $ launchctl list|grep mysql to see if this is the problem, and then find the file for the launchd job in one of the launchd plist directories, in this case, probably /Library/LaunchDaemons/.

share|improve this answer
I'd upgraded from an old install that I can't remember the details of to a new 64-bit version using the DMG installer -- in my case this had left a launchd job lying around from the previous version that was interfering with the new version (which instead of using com.mysql.mysqld seems to use something more dynamic that shows up like 0x7fad52420fe0.anonymous.mysqld in launchctl list.) Nuking the old launchd job fixed the problem, thanks for the pointer in the right direction. – Matt Gibson Mar 2 '14 at 16:16
BTW, I had to run sudo launchctl list | grep mysql in order to see it in the launchctl list – Nick Sep 3 '15 at 19:49

You must log in to answer this question.

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