1DataSet ds = new DataSet();
2using (MySqlConnection con = new MySqlConnection(connectionstr))
3{
4 using (MySqlCommand cmd = con.CreateCommand())
5 {
6 con.Open();
7 cmd.CommandText = "select * from mysql.user;";
8 MySqlDataAdapter adapter = new MySqlDataAdapter(cmd);
9 adapter.Fill(ds);
10 }
11}