Bug #48968 New default for checking MySQL Status for MacOS
Submitted: 22 Nov 2009 8:36 Modified: 22 Nov 2009 8:54
Reporter: Geert Vanderkelen Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench Severity:S4 (Feature request)
Version:5.2.8 OS:MacOS (10.6.2)
Assigned to: CPU Architecture:Any

[22 Nov 2009 8:36] Geert Vanderkelen
Description:
In Workbench Server Administration:

When you add a new instance, the 'Check MySQL Status' reads:
 ps -C mysqld -o pid=

The above is OK for Linux machines, but it is not for Mac. The -C option for example has a total different meaning.

How to repeat:
* Create new instance on MacOS: server status doesn't work.

Suggested fix:
A better command (which works) on MacOS X is:
 ps -cax | grep mysqld

The Start/Stop commands are using the init.d script, why not using for default:
 /etc/init.d/mysql status

The above would not help on MacOS, but well..

Maybe it's good to propose some alternatives in a Drop Down box? Mentioning on which platform it would work best?
[22 Nov 2009 8:54] Geert Vanderkelen
I found that when choosing the MacOS X Package template, it changes the command to: 
 ps -cxa | grep [m]ysqld

Which is good enough!
Sorry about that.