概述
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 mysql server_无法使用ODBC连接连接到MYSQL服务器所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复