mySQL and PHP - connecting to port 3306 - basic how to
I've been learning php and now I'm dipping my toes into mySQL.  I have a database set up on my home computer and dedicated serverspace on a remote machine to host my website.  When I try to connect to the database with php (mysql_connect) I get this error :  Lost connection to MySQL server at 'reading initial communication packet', system error: 110  

On further research I determined (and correct me if I'm wrong) that this is because my port 3306 is not open.

I'm new to all of this.  Could someone explain how I sniff for open ports on my own machine (mac osx10.7) and how I go about doing whatever it is I need to do so that the 3306 port is open and so I can access that database on my computer.  Thanks.


mySQL and PHP - connecting to port 3306 - basic how to
===

I've been learning php and now I'm dipping my toes into mySQL.  I have a database set up on my home computer and dedicated serverspace on a remote machine to host my website.  When I try to connect to the database with php (mysql_connect) I get this error :  Lost connection to MySQL server at 'reading initial communication packet', system error: 110  

On further research I determined (and correct me if I'm wrong) that this is because my port 3306 is not open.

I'm new to all of this.  Could someone explain how I sniff for open ports on my own machine (mac osx10.7) and how I go about doing whatever it is I need to do so that the 3306 port is open and so I can access that database on my computer.  Thanks.

