ASP.NET use SqlConnection connect MySQL

前端 未结 3 446
既然无缘
既然无缘 2020-11-27 21:16

This is the connection string saved in web.config:


    

        
3条回答
  •  感情败类
    2020-11-27 22:05

    Not that I know of, and even if it would, why would you want to? You are using a connection object specifically created for Microsoft SQL Server, so it wouldn't connect in the same fashion MySQL does.

    For accessing a MySQL database, you should use the MySQL .NET connector which you can find here.

提交回复
热议问题