Current time: 05-06-2024, 09:52 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
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Lost connection to MySQL server at 'reading initial communication packet', system err
Use "localhost" instead of the IP address when connecting to the localhost mysql instance Wink
08-23-2009 05:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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