我是靠谱客的博主 积极大象,这篇文章主要介绍odbc mysql server_无法使用ODBC连接连接到MYSQL服务器,现在分享给大家,希望可以做个参考。

bd96500e110b49cbb3cd949968f18be7.png

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");

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.

解决方案Perhaps a firewall is in place and block connection to MySQL tcp port 3306 ?

Is the MySQL and your program running on the same computer?

Can''t connect to [local] MySQL server[^]

Another thing, take a look at the managed MySQL database connector and skip ODBC.

Download Connector/Net[^]

1. Make sure you have installed the .Net Framework on your server

2. Download the ODBC .Net data provider and install it on your development machine or your server. You can download it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=6ccd8427-1017-4f33-a062-d165078e32b1&DisplayLang=en

3. install MySQL ODBC Driver-MyODBC 3.51. You can download it here: http://dev.mysql.com/downloads/connector/odbc/3.51.html

Refer below it will help you,

Link1[^]

Link2[^]

最后

以上就是积极大象最近收集整理的关于odbc mysql server_无法使用ODBC连接连接到MYSQL服务器的全部内容,更多相关odbc内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(132)

评论列表共有 0 条评论

立即
投稿
返回
顶部