http://sourceforge.net/projects/mysqldrivercs/files/MySQLDriverCS-n-EasyQueryTools/ 或 http://sourceforge.net/projects/mysqldrivercs/?source=navbar
然后把下载下来的MySQLDriverCS.DLL引用到工程,具体引用就是选择工程下面的reference----右键add---浏览,找到dll添加进去就OK。
再给你点连接代码吧
MySQLConnection conn = null;
conn = new MySQLConnection(new MySQLConnectionString("localhost", "person", "root", "").AsString);
conn.Open();
MySQLCommand commn = new MySQLCommand("set names gb2312", conn);
commn.ExecuteNonQuery();
string sql = "select * from `users` ";
MySQLDataAdapter mda = new MySQLDataAdapter(sql, conn);
DataSet ds = new DataSet();
mda.Fill(ds, "table1");
this.dataGridView1.DataSource = ds.Tables["table1"];
conn.Close();