Hey guys,
I have had my sql server running for ages now, but I now need to let a friend connect to it from outside my network. I have had no problems what-so-ever connecting from the actual server using host of localhost, however, my friend keep getting the following error messages within his code:
Code:
Warning: mysql_connect(): Lost connection to MySQL server during query in /home/s/a/savetherennets_com/includes/mysqldbc.php on line 8
Could not connect to MySQL: Lost connection to MySQL server during query
The code on what line is the connection to the database:
Code:
$dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
Any suggestions as to why this is happening? I have set up the username that my friend is using through phpMyadmin and granted access from all domains (%) so I can't see what the problem is.
Many thanks
Jamie