After you installed it, you are ready to go. Its that simple and easy.
Here is an example
Add Mysql.Data assembly reference
- using System.Data;
- using MySql.Data.MySqlClient;
- public DataTable GetDataFromMySql()
- {
- MySqlDataAdapter da;
- MySqlConnection con = new MySqlConnection("Server=your_server;Database=your_db;Uid=your_username;Password=your_password");
- try
- {
- con.Open();
- da.Fill(ds);
- }
- catch
- {
- throw;
- }
- finally
- {
- if (con.State == ConnectionState.Open)
- con.Close();
- }
- return ds.Tables[0];
- }
Happy Coding