Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

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.

share|improve this answer

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

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.