在 Windows XP 中添加数据源 - ODBC 时丢失与 MySQL 服务器的连接

发布于 2024-09-11 13:15:52 字数 184 浏览 2 评论 0原文

当我尝试连接到本地主机时,没有问题。但是当我连接到我的服务器时,我收到此错误。

[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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

予囚 2024-09-18 13:15:52

无法通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文