具有MySQL数据库连接的ASP.Net [英] ASP.Net with MySQL Database connectivity
本文介绍了具有MySQL数据库连接的ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
由于某种原因(由于我是初学者),我试图用mysql数据库开发一个简单的asp.net应用程序.我无法在应用程序中连接数据库.
我的连接字符串是
Hello All,
I am trying to develop a simple asp.net application with mysql database, for some reason (as I am a beginner) I cannot connect the database in my application.
My connection string is
"server=localhost;User Id=root;Persist Security Info=True;database=university"
我当前正在使用MS Visual Studio2010.我想做的是数据库连接,并在datagridview的网页上显示数据库的记录.
我已经安装了Mysql连接器6.4.4和xampp.
有任何帮助吗?
I am currently using MS visual studio 2010. what i want to do is a database connectivity and show the record of the database on the webpage in datagridview.
I have already installed Mysql connector 6.4.4 and xampp.
Any help ?
推荐答案
访问此站点以获取连接字符串的示例: http://www.connectionstrings.com/ [ ^ ]
Visit this site for examples of connection strings : http://www.connectionstrings.com/[^]
检查此文章,它具有您想要的内容:
使用C#和.NET连接到MySQL数据库 [ ^ ]
希望对您有所帮助:)
check this article, it has something like you want:
Connecting to MySQL Database using C# and .NET[^]
hope it helps :)
此链接将为您提供有关" Asp.Net MySQL DataAccess "的信息
http://www.15seconds.com/issue/050210.htm
这将为您提供有关"在Asp.Net WebPage上显示MySQL数据"的信息.
http://www.packtpub.com/article/displaying-mysql- data-on-asp.net-网页
http://www.15seconds.com/issue/060317.htm
This link will provide you information on "Asp.Net MySQL DataAccess"
http://www.15seconds.com/issue/050210.htm
This will provide you information on "Displaying MySQL Data on Asp.Net WebPage".
http://www.packtpub.com/article/displaying-mysql-data-on-asp.net-web-page
http://www.15seconds.com/issue/060317.htm
这篇关于具有MySQL数据库连接的ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文