Updated error message to be more informative. Previous error message

"Access denied to database mysql" was actually not just misleading, but
also wrong.

Bug#7905.
parent 13ec961c
...@@ -3399,9 +3399,12 @@ purposes internal to the MySQL server", MYF(0)); ...@@ -3399,9 +3399,12 @@ purposes internal to the MySQL server", MYF(0));
my_strcasecmp(&my_charset_latin1, my_strcasecmp(&my_charset_latin1,
user->host.str, thd->host_or_ip))) user->host.str, thd->host_or_ip)))
{ {
if (check_access(thd, UPDATE_ACL, "mysql",0,1,0)) if (check_access(thd, UPDATE_ACL, "mysql", 0, 1, 1))
{
send_error(thd, ER_PASSWORD_NOT_ALLOWED);
goto error; goto error;
break; // We are allowed to do changes }
break; // We are allowed to do global changes
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment