在 Windows XP 中添加数据源 - ODBC 时丢失与 MySQL 服务器的连接
当我尝试连接到本地主机时,没有问题。但是当我连接到我的服务器时,我收到此错误。
[08S01][MySQL][ODBC 5.1 驱动程序] 在“读取初始通信数据包”时失去与 MySQL 服务器的连接,系统错误:2
请告诉我如何解决此问题。 我尝试过 MySQL ODBC 驱动程序,包括 3.51 和 5.1 驱动程序。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法通过 HTTP(或 PHPMyAdmin)建立与 MySQL 的 ODBC 连接。
您想如何连接?
编辑:超时也可能是一个问题。将 connect_timeout 全局变量更改为 30
几秒钟(或其他“长”时间),看看是否有帮助。
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.