PHP and mySQL -- can't connect
I have a mysql Database on one computer  -

   This computer has no web server software on it except mysql.
   I have set up the mysql my.cnf file according to info on the [net][1].
   I have my firewall turned off so the 3306 port should be open.
   
On a remote server I host some website.  I want to access the database on the first computer through php.  The code looks like this.

    <?php 
    	$host = 'xxx.xxx.x.xx';
    	$name = 'xxx';
    	$pass = 'xxxx';
    	$connection = mysql_connect($host,$name,$pass) or die ("Unable to connect!");
    ?>

However when I run this I get a time out error stating that "Lost connection to MySQL server at 'reading initial communication packet', system error: 110" 


Could someone give me a hand in setting this up so that I am able to access the mysql on my home computer remotely from my hosting server.  thanks.


  [1]: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
PHP and mySQL -- can't connect
===

I have a mysql Database on one computer  -

   This computer has no web server software on it except mysql.
   I have set up the mysql my.cnf file according to info on the [net][1].
   I have my firewall turned off so the 3306 port should be open.
   
On a remote server I host some website.  I want to access the database on the first computer through php.  The code looks like this.

    <?php 
    	$host = 'xxx.xxx.x.xx';
    	$name = 'xxx';
    	$pass = 'xxxx';
    	$connection = mysql_connect($host,$name,$pass) or die ("Unable to connect!");
    ?>

However when I run this I get a time out error stating that "Lost connection to MySQL server at 'reading initial communication packet', system error: 110" 


Could someone give me a hand in setting this up so that I am able to access the mysql on my home computer remotely from my hosting server.  thanks.


  [1]: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html