MySQLCommand setformat = new MySQLCommand("set names gb2312", conn); setformat.ExecuteNonQuery(); setformat.Dispose();