想把这个变量列表还有状态列表里的东西取出来,但是能力不够,不知道怎么取,希望园子里的大佬能教教我!谢谢了!我用的是C#.NET。。
string MyConnection2 = "datasource=localhost;port=3307;username=root;password=root"; //Display query string Query = "SHOW VARIABLES;"; MySqlConnection MyConn2 = new MySqlConnection(MyConnection2); MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MyConn2.Open(); //For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapter = new MySqlDataAdapter(); MyAdapter.SelectCommand = MyCommand2; DataTable dTable = new DataTable(); MyAdapter.Fill(dTable);
谢谢大佬!