在ASP.NET中连接MySql数据库 [英] Connect MySql database in asp.net
本文介绍了在ASP.NET中连接MySql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在vs 2008中将MySql连接到服务器资源管理器?
解决方案
下载并安装.Net的MySql提供程序 [^ ](如果尚未)
*打开服务器资源管理器
*鼠标右键->添加连接
*数据源->更改->选择MySQL数据库-> OK
*输入数据库连接的详细信息
您必须下载MySql.Data.dll ...
然后,您可以开始使用connection,命令类....
类似于sql连接.
对于您的连接字符串,您始终可以查看 http://www.connectionstrings.com/ [ ^ ].
How do i connect MySql to server explorer in vs 2008?
解决方案
Download and install the MySql provider for .Net[^] if you haven''t already
* Open Server Explorer
* Right mouse -> Add Connection
* Datasource -> Change -> Choose MySQL Database -> OK
* Enter details for the database connection
You have to download MySql.Data.dll ...
Then you can start using the connection , command classes ....
similar to that of sql conneciton.
For your connection string, you can always have a look at http://www.connectionstrings.com/[^].
这篇关于在ASP.NET中连接MySql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文