Bug #114876 | Inconsistent error for bad user when mysql_native_password=OFF | ||
---|---|---|---|
Submitted: | 3 May 21:11 | Modified: | 6 May 7:57 |
Reporter: | Evan Elias | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | 8.4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 May 21:11]
Evan Elias
[6 May 7:57]
MySQL Verification Team
Hello Evan Elias, Thank you for the report and feedback. regards, Umesh
[6 May 20:53]
Simon Mudd
Additionally the error "ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded" is confusing. I saw this when upgrading a server to 8.4 from 8.0. Unfortunately I had not updated the mysql_native_password users to caching_sha2_password so could not login :-( The error seems to indicate that you should "load the plugin", but of course there's no explicit mysql_native_password plugin to load. Instead to fix this requires setting in /etc/my.cnf mysql_native_password=ON which while documented is not intuitive. Given this is going to bite a lot of people please provide a BETTER error message otherwise people will go on a wild goose chase looking for how to "load the plugin" rather than enabling it as shown above. Reference: https://dev.mysql.com/doc/refman/8.4/en/mysql-nutshell.html#:~:text=MySQL%20native%20passw...
[6 May 20:57]
Simon Mudd
It might also be argued as indicated by Evan that you don't want to expose this detail to the user, so the ERROR 1045 would be correct. However, in such a case the error reported the the mysqld log file could provide better information to the DBA as to what the problem actually is.