MySqlConnection conn = new MySqlConnection(); conn.ConnectionString = " server=localhost; user id=root; password=123456; database=test; pooling=false; " ; string sql = " select * from test " ; MySqlDataAdapter pter = new MySqlDataAdapter(sql, conn); DataTable table = new DataTable(); pter.Fill(table); Response.Write(table.Rows[ 0 ][ 0 ].ToString());