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