c#连接数据库时出现异常,求解!
程序代码:
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)