Hi to all
how to use MYSQL data base in my .net project
which is requirment for connect to mysql database
plz help me
thanks
Loading
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.
Sam HobbsPosted Apr 12, 2011, 2:55 AM
It's that easy; if you did that before writing this question, you would have had the download in the amount of time it took for you to create this question.
Imran PervezPosted Apr 11, 2011, 6:43 AM
2. Add Reference "MySql.data" in your project
3. I send some code may be help full for u
using MySql.Data.MySqlClient;
MySqlConnection connection;
//open connection
if (this.OpenConnection() == true)
{
//create command and assign the query and connection from the constructor
MySqlCommand cmd = new MySqlCommand(query, connection);
//Execute command
cmd.ExecuteNonQuery();
//close connection
this.CloseConnection();
}