0

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.

splattne
  • 28,508
  • 20
  • 98
  • 148
newguy
  • 195
  • 3
  • 10
  • I think, you can use same commands as in GNU/Linux (for example, it described [here](http://www.cyberciti.biz/faq/how-to-find-out-if-mysql-is-running-on-linux/)). – Max Kochubey Jul 16 '12 at 04: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 04: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`). – Max Kochubey Jul 16 '12 at 04:38

1 Answers1

1

hope this helps. http://dev.mysql.com/doc/refman/5.0/en/macosx-installation.html

shaff
  • 11
  • 1