开发者

System.Data.SqlClient Namespace for MySQL?

开发者 https://www.devze.com 2023-01-17 14:25 出处:网络
The exception says that there is a network开发者_开发知识库 related problem, or that the SQL server does not allow remote access, none of those are true.

The exception says that there is a network开发者_开发知识库 related problem, or that the SQL server does not allow remote access, none of those are true.

Can it be that I'm trying to connect a MySQL server, and not MS SQL?

Thanks


It is because the System.Data.SqlClient namespace is designed for Microsoft SQL Server, to connect to MySQL you will need to download and reference the MySQL .NET Connector http://dev.mysql.com/downloads/connector/net/. You will then use the System.Data.MySqlClient namespace. Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消