使用C#与MYSQl连接 [英] connecting with MYSQl using C#

查看:77
本文介绍了使用C#与MYSQl连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用.net 3.5中的C#和MySql作为数据库创建桌面应用程序.我是MySql的新手,不知道如何将.net应用程序与MySql数据库连接.

请尽快回复我.

预先感谢.

解决方案

下载MySQL的.Net提供程序

http://www.mysql.com/products/connector/ [ http://www.connectionstrings.com/mysql#p28 [ http://bitdaddys.com/MySQL-ConnectorNet.html [从.NET应用程序连接到MySQL数据库. [ http://dev.mysql.com/tech-resources/articles/dotnet/index.html [^ ],是的,别忘了这个有价值的 ^ ].


hi
I am creating a desktop application using C# in .net 3.5 and MySql as database. I am very new to MySql and do not know how to connect .net application with MySql database.

Please reply me as soon as possible.

Thanks in advance.

解决方案

Download the .Net provider for MySQL

http://www.mysql.com/products/connector/[^]

Once downloaded, set a reference to the dll in your project

Create a connection string for the provider & open your connection!

Connection Strings
http://www.connectionstrings.com/mysql#p28[^]

Create Connection Samples
http://bitdaddys.com/MySQL-ConnectorNet.html[^]


Good you asked. There are plenty of resources out there. For starters let us look at this CP article
Connecting to MySQL database from your .NET applications.[^]

Then of course there is this http://dev.mysql.com/tech-resources/articles/dotnet/index.html[^], and yes, don''t forget this valuable tool [^]as well.


这篇关于使用C#与MYSQl连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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