I have a MySQL db running, or I want to see if its running. What command may I use to see which ports are active and what they are running?
3 Answers
netstat -ano
Look for the line that is LISTENING on port 3306, and then check the PID.
An easier test it just to try and telnet in from another machine, to port 3306, or try to connect with a MySQL client.
In addition to netstat you can use a GUI tool like ActivePorts or Process Hacker (look at the Network tab) to show open ports and the executables that have opened them.