代码如下: using MySql.Data.MySqlClient; MySqlConnection conn = new MySqlConnection(“server=(local);database=abc;uid=;pwd=”); conn.Open(); MySqlCommand com = new MySqlCommand(“select * from tb_xxjj”,conn); MySqlDataReader dr = com.ExecuteReader(); dr.Read