Nomis
Junior Member
Posts: 36
Joined: May 2007
Reputation: 0
|
Lost connection to MySQL server at 'reading initial communication packet', system err
Hi
I have recently completed a ispCP 1.0.0 installation and have loaded my website on it. However the chap who wrote it used a database for some of the data. It calls the database via a connections.php file
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "***.**.***.*";
$database_localhost = "allseasons";
$username_localhost = "allseasons";
$password_localhost = "scca_key";
$allseasons = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>
I get the following error when I try and call the page up
Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/www/virtual/premierpumps.co.za/htdocs/Connections/allseasons.php on line 10
Fatal error: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/www/virtual/premierpumps.co.za/htdocs/Connections/allseasons.php on line 10
|
|
08-23-2009 02:57 AM |
|