title: In mac terminal, how to check which port mysql is running?
body: <p>I've done some research and found several places where people suggest using <code>netstat</code> to check which port a particular process is using. 
  But here is what I got: </p>
  
  <pre><code>myMac:~/Documents$ netstat -ap tcp | grep -i "listen"
  
  tcp4       0      0  localhost.mysql        *.*                    LISTEN  
  </code></pre>
  
  <p>What does <code>localhost.mysql</code> say about the port number?? I'm expecting a 4 digit number like 3306. 
  Any thoughts? </p>