MySQL Forums
Forum List  »  PHP

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server
Posted by: Khush Preet
Date: March 28, 2014 10:55AM

M trying to access database from other server using follwing setting s

$hostname='www.hostserver.com';
$username='username';
$password= 'password';
$dbname='databasename';

But m getting below Error..

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /hermes/waloraweb012/b103/as.luckies/lc_beta/db/db.php on line 15
Lost connection to MySQL server at 'reading initial communication packet', system error: 111
Unable to connect to database! Please try again later.



If any solution please reply me .

Options: ReplyQuote


Subject
Written By
Posted
Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server
March 28, 2014 10:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.