Unable to connect to any MySQL Host

I was debugging my colleague PC because the MySQL Connector.NET throws the said error. Found problem similar to it, but the solution was not satisfactory. This one throws a generic exception.
I was scratching my head, because MySQL Administrator and MySQL Query Browser works.
There must be something wrong.
I did a lot of things, such disabling the antivirus, check the WinSock, check .NET Trust level with no avail.
Then I just changed the connection string from localhost to 127.0.0.1, and then it works.

WTF just happened?

Well it seems that the 127.0.0.1 localhost entry in hosts.sam is missing. So put it there again and it works.

Damnit. How in the world the entry is deleted?

Tuesday, March 17th, 2009 programming

No comments yet.

Leave a comment

Search

 

My Flickr

DSC_3950P4054890P4054887