Current time: 06-02-2024, 12:22 PM Hello There, Guest! (LoginRegister)


Post Reply 
Lost connection to MySQL server at 'reading initial communication packet', system err
Author Message
Nomis Offline
Junior Member
*

Posts: 36
Joined: May 2007
Reputation: 0
Post: #1
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
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Lost connection to MySQL server at 'reading initial communication packet', system err - Nomis - 08-23-2009 02:57 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)