如何在C#中连接到mysql数据库 [英] How do I connect to a mysql database in C#

查看:136
本文介绍了如何在C#中连接到mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I connect to a MYSQL database in C#?

推荐答案

使用与此类似的方法
通过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


这篇关于如何在C#中连接到mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆