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.
This commit is contained in:
jani@a193-229-222-105.elisa-laajakaista.fi 2005-03-14 16:59:09 +02:00
parent 13ec961c3a
commit 9ec8d87328

View File

@ -3399,9 +3399,12 @@ purposes internal to the MySQL server", MYF(0));
my_strcasecmp(&my_charset_latin1,
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;
break; // We are allowed to do changes
}
break; // We are allowed to do global changes
}
}
}