3

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 3

3

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.

4

netstat -ab will show the process name for each port.

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .