How to connect asp.net with mysql
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 7, 2012, 12:58 AM EDT
http://www.codeproject.com/Tips/355977/Csharp-ASP-NET-MySQL-Connection-Tutorial-with-MySQ
Check this is corerct answer if it helped.
Deepak VermaRank #672 · 3.6K reputationPosted Sep 7, 2012, 1:04 AM EDT
you need to download MSQL Connector. Download it here
And you'll find an informative tutorial for the same here.
Kamal RawatRank #567 · 4.3K reputationPosted Sep 7, 2012, 9:47 PM EDT
After successfull Installation u can write the following code to connect with mysql.
Add the following reference:
using MySql.Data.MySqlClient
try
{
public void OpenConnection()
{
string query =
MySqlConnection con = new MySqlConnection();
con.ConnectionString = "connectionstring";
con.Open();
}
}
This way you can connect to Mysql database..