开发者

Lost connection to MySQL server in Windows XP while adding Data Source - ODBC

开发者 https://www.devze.com 2023-01-09 01:20 出处:网络
When I am trying to connect to the localhost, there is no problem. But when I am connecting to my server, I am getting this error.

When I am trying to connect to the localhost, there is no problem. But when I am connecting to my server, I am getting this error.

[08S01][MySQL][ODBC 5.1 Driver] Lost connection 开发者_开发知识库to MySQL server at ‘reading initial communication packet’, system error: 2

Please tell me how to work around this. I have tried with MySQL ODBC Drivers, both 3.51 and 5.1 drivers.


An ODBC connection to MySQL cannot be made through HTTP (or PHPMyAdmin).

How are you trying to connect?

Edit: time-out may also be an issue. Change the connect_timeout global variable to 30 seconds (or some other 'long' time) and see whether that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消