MySQLCommand commn = new MySQLCommand("set names gb2312", conn);            commn.ExecuteNonQuery();            string sql = "select a,b from aaa.abc";            MySQLDataAdapter mda = new MySQLDataAdapter(sql, conn);            DataSet ds = new DataSet();            mda.Fill(ds, "abc");           // this.dataGrid1.DataSource = ds.Tables["table1"];            conn.Close();
            return ds;而执行更新确可以。