Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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

 
discard

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.