本文介绍了无法使用ODBC连接连接到MYSQL服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我已使用带有连接字符串的WCF服务连接到MYSQL数据库:
Hi All,
I had connected to the MYSQL database using WCF services with connection string:
OdbcConnection sqlcon = new OdbcConnection("DRIVER={MySQL ODBC 3.51 Driver};SERVER=xxx.xxx.xxx.xx;database=xxxxxx;UID=xxxxxx;Pwd=xxxxx;Connect Timeout=500; pooling=true; Max Pool Size=200");
我从4个月开始使用这些服务.但是突然它给出了如下错误:
错误[HY000] [MySQL] [ODBC 3.51驱动程序]无法连接到"xxx.xxx.xxx.xx"(10060)上的MySQL服务器.
我也尝试过使用服务器名称.我仍然遇到相同的错误.
任何建议将不胜感激.谢谢!
Varshini M.
I had used those services from 4 months. But suddenly it''s giving the error as:
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Cant connect to MySQL server on ''xxx.xxx.xxx.xx'' (10060).
I had tried with the server name also. Still I''m getting the same error.
Any suggestions would be greatly appreciated. Thank you!
Varshini M.
推荐答案
这篇关于无法使用ODBC连接连接到MYSQL服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!