||1. Database Connection
We trying to run a MYSQL database based blog and I have problems with simple connecting to the database I created. I used PHP and when I run the site I get this error
"Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/thenalzk/public_html/conn.php on line 6
Could not connect to the database; Lost connection to MySQL server at 'reading initial communication packet', system error: 111"
This comes from this php file
$conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS)
or die('Could not connect to the database; ' . mysql_error());
or die('Could not select database; ' . mysql_error());
Please may you direct me as to what could be the problem? It runs perfectly on my local server.
There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.
Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.