![]() |
#2
hkkuality2015-04-09 21:56
|

public MySqlDataReader ExecuteQuery1(string sql)
{
conn.Open();
MySqlCommand cmd = new MySqlCommand(sql, conn);
MySqlDataReader rd = cmd.ExecuteReader();
return rd;
}
MySql.Data.MySqlClient.MySqlException”类型的异常在 MySql.Data.dll 中发生,但未在用户代码中进行处理
其他信息: Authentication to host 'XU- PC' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'xu-PC' (using password: NO)
{
conn.Open();
MySqlCommand cmd = new MySqlCommand(sql, conn);
MySqlDataReader rd = cmd.ExecuteReader();
return rd;
}
MySql.Data.MySqlClient.MySqlException”类型的异常在 MySql.Data.dll 中发生,但未在用户代码中进行处理
其他信息: Authentication to host 'XU- PC' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'xu-PC' (using password: NO)