How to connect asp.net with mysql
How to connect asp.net with mysql
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kamal RawatPosted Sep 8, 2012, 1:47 AM
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..
Deepak VermaPosted Sep 7, 2012, 5:04 AM
you need to download MSQL Connector. Download it here
And you'll find an informative tutorial for the same here.
Sukesh MarlaPosted Sep 7, 2012, 4:58 AM
http://www.codeproject.com/Tips/355977/Csharp-ASP-NET-MySQL-Connection-Tutorial-with-MySQ
Check this is corerct answer if it helped.