Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

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

leave a comment »

For the past couple of days, for some reason I was unable to connect to the MySQL database on the system I worked, it was not a problem till now, since all I needed was a data grid, but now I had to use workbench.

The error I was getting was: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111

Well, it took me a couple of hours to gast that but I have finally found the reasone.

Early this week we have changed the bind address of the MySQL server in the my.inf file to be the external address of the system.

What i had to do was to match the address of the bind from localhost to the external one, so the correct command was:

ssh -v -f -N -L 3307:192.168.0.1:3306 user@host.server.com

Advertisements

Written by Alex (Shurf) Frenkel

May 5, 2010 at 9:46 pm

Posted in Uncategorized

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: