且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中连接到mysql数据库

更新时间:2022-11-30 08:28:40

使用与此类似的方法
通过C#访问SQL Server的入门指南 [ http://www.connectionstrings.com/mysql [
Using similar method to this
Beginners guide to accessing SQL Server through C#[^]

The connection string you need to use is here.
http://www.connectionstrings.com/mysql[^]

Good luck


使用 MySql Connector/Net [ ^ ]并按照您的方式进行操作:-)

请从MySql中查看本指南- http://dev.mysql.com/doc/refman/5.1/en/connector-net-programming.html [ ^ ]
Use MySql Connector/Net[^] and work you way :-)

See this guide from MySql - http://dev.mysql.com/doc/refman/5.1/en/connector-net-programming.html[^]


您需要获取MySQL的.Net连接器的副本 ^ ].此连接器是标准的ADO.Net组件,因此,如果您使用过Sql Server,则应该没问题.

希望对您有帮助
You need to get a copy of the .Net connector for MySQL here[^]. This connector is a standard ADO.Net component and so if you have used Sql Server then you should be fine.

Hope this helps