Server Fault is a question and answer site for system and network administrators. 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

What command to use to check whether the MySQL service is available on a Mac OS X server?

Googled it but I couldn't find any answers.

share|improve this question
I think, you can use same commands as in GNU/Linux (for example, it described here). – hangover Jul 16 '12 at 4:22
I've tried using that one. It says command not found. But I don't know if it is installed because even if it is installed the command might not be in the PATH. I wonder if there is a service checking command on mac to reveal that information. – newguy Jul 16 '12 at 4:28
Well, you may then check the mysql process existense (ps aux | grep mysql) or that mysql server listens its port (netstat -ntpl | grep 3306). – hangover Jul 16 '12 at 4:38

Your Answer


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.