Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Asked by Quang Nguyen

Hi, from my web servers, I can use mysql client to connect to my backend databases through mysql-proxy and run queries, but when I use php with mysql_connect(), it shows errors:
Lost connection to MySQL server at 'reading initial communication packet', system error: 111

I tried to use php with mysql_connect() to connect directly to my database and it works good. So the problem is my mysql_proxy. Please help me solve this problem. Thanks.

Quang.

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Solved by:
Quang Nguyen
Solved:
Last query:
Last reply:
Revision history for this message
Quang Nguyen (tinquang) said :
#1

Sorry for my dump question, I forgot that mysql_connect using default port 3306, I changed it to 4040 and it works now.

Quang