如何将asp.net与MySQL数据库连接? [英] how to connect asp.net with MySQL database?
本文介绍了如何将asp.net与MySQL数据库连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好可以告诉我如何将asp.net连接到MySQL数据库吗?
hi can tell me how to connect asp.net with MySQL database?
推荐答案
您好在这里询问任何问题之前请搜索谷歌。
访问这些链接
Link1 [ ^ ]
Link2 [ ^ ]
< a href =http://www.youtube.com/watch?v=YEs32zkt5GA> Link3 [ ^ ]
希望它有所帮助
谢谢我磷;问候
Sameer
Hi frnd please search on google before asking any question here.
visit these links
Link1[^]
Link2[^]
Link3[^]
Hope it helps
Thanks & Regards
Sameer
HI ...
您可以从Web配置文件连接数据库。在连接字符串中只提供所有细节。
例如:
HI...
You can connect database from web config file. In connection string simply provide all details.
eg :
<pre lang="c#"> <connectionstrings>
<add name="ConnectionString1" connectionstring="User ID=" your="" database="" connecting="" username=";password=YOUR DATABASE CONNECTING PASSWORD;Data Source=YOUR DATASOURCE;Initial Catalog=DATABASE NAME" />
</connectionstrings>
试试这个......
Try with this...
参考 - http://www.conne ctionstrings.com/mysql/ [ ^ ]
使用适当的ConnectionString
并使用ADO.NET连接到数据库
对象。
另请阅读以下文章。
1. 如何使用C#连接MySQL [ ^ ]
2. 使用MySQL数据库的ASP.NET应用程序 [ ^ ]
Refer - http://www.connectionstrings.com/mysql/[^]
Use appropriateConnectionString
and Connect to Database usingADO.NET
objects.
Also go through the below articles.
1. How to Connect to MySQL Using C#[^]
2. An ASP.NET Application Using a MySQL Database[^]
这篇关于如何将asp.net与MySQL数据库连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文