Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi can tell me how to connect asp.net with MySQL database?
Posted

Hi frnd please search on google before asking any question here.

visit these links

Link1[^]

Link2[^]

Link3[^]

Hope it helps
Thanks & Regards
Sameer
 
Share this answer
 
v2
HI...

You can connect database from web config file. In connection string simply provide all details.

eg :
HTML
<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...
 
Share this answer
 
Refer - http://www.connectionstrings.com/mysql/[^]

Use appropriate ConnectionString and Connect to Database using ADO.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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900