简体   繁体   中英

c# mysql connect mistake

MySqlConnection con = new MySqlConnection("SERVER=http://185.106.208.... ;DATABASE=netcom_demo;UID=root;PASSWORD=test123;");

ı采取“无法连接到任何指定的MySql主机”的方法,ı可以做什么?

The First thing you should do is to check connectivity to the database you can use a tool like Workbench to connect to the database. Also check you can ping the IP address, If you can't connect using a client like Workbench maybe the problem could be a firewall.

这会帮助你。

MySqlConnection con = new MySqlConnection("User ID=root;pwd=test123;Initial Catalog=netcom_demo;Data Source=185.106.208....;");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM