C#中使用MySQLC#中使用MySQL这是我将数据打印到终端的代码:publicstaticvoidWriteData(){stringconnString="SERVER=localhost;"+"数据库=db;"+"UID=用户;"+"密码=通过;";MySqlConnection连接=newMySqlConnection(connString);MySqlCommand命令=connection.CreateCommand();MySqlDataReader阅读器;command.CommandText="SELECT*FROMtable1";connection.Open();阅读器=命令.ExecuteReader();while(reader.Read()){for(inti=0;i
