How to tell if mysql is running-
[osx:~] michael% ps -waux |grep mysqld
root 283 0.0 0.2 1732 424 ?? S 0:00.05 sh /usr/local/bin/safe_mysqld
mysql 302 0.0 0.1 11152 332 ?? S 0:00.59 /usr/local/sbin/mysqld
[osx:~] michael%
here's a way to do it remotely-
[root@12-233-82-128 nmap-2.54BETA34]# nmap 192.168.3.72
Starting nmap V. 2.54BETA34 (
www.insecure.org/nmap/ )
WARNING! The following files exist and are readable: /usr/local/share/nmap/nmap-services and ./nmap-services. I am choosing /usr/local/share/nmap/nmap-services for security reasons. set NMAPDIR=. to give priority to files in your local directory
Interesting ports on osx.petershomenetwork.org (192.168.3.72):
(The 1553 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
3306/tcp open mysql
8081/tcp open blackice-icecap
Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
[root@12-233-82-128 nmap-2.54BETA34]#