Menu Open

C%23 - MySQL Connection

31 January 2009, 11:28 PM
Add Refence
using MySql.Data.MySqlClient;
Then code also her is code to Create a DataGridView
 private DataTable dt = new DataTable();         private BindingSource bs = new BindingSource();   // Localhost if Local otherwise need SERVER name
string CONN_STRING = "SERVER=localhost;" +                     "DATABASE=databasename;" +                     "UID=username;" +                     "PASSWORD=password;";