Can not connect to my sql database.

Posted by madhup on Server Fault See other posts from Server Fault or by madhup
Published on 2010-05-15T12:50:51Z Indexed on 2010/05/15 12:54 UTC
Read the original article Hit count: 251

Filed under:
|
|

Hi all,

I am trying to connect to mysql database on amazon through a php script, but I am shown this error:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111

I have tried and searched places and did the following things:

  • In "/etc/mysql/my.cnf" I commented out the line bind address: 127.0.0.1 to allow the acccess to all.
  • checked /etc/hosts.allow and /etc/hosts.deny and made sure that there are no rules present that may cause

But still no luck. Please suggest any other way.

Thanks, Madhup

© Server Fault or respective owner

Related posts about aws

Related posts about amazon-ec2