Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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...

Hints?

share|improve this question
1  
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

1 Answer 1

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 at 16:16

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.