netstat -tln mysql

lsof -n -P -i TCP -s TCP:LISTEN
Inexpensive Iguana