Bug #95841 | Convert users from mysql_native_password to caching_sha2_password | ||
---|---|---|---|
Submitted: | 17 Jun 2019 13:59 | Modified: | 18 Jun 2019 16:26 |
Reporter: | IGG t | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.16 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | authentication, plugin |
[17 Jun 2019 13:59]
IGG t
[17 Jun 2019 14:28]
Peter Laursen
What about this statement: "ALTER USER 'user'@'host' IDENTIFIED WITH caching_sha2_password;" ? This worked for me with a user who before executing the statements used "mysql_native_password" plugin. Now - after executing the above statement - the user uses "caching_sha2_password". Related docs https://dev.mysql.com/doc/refman/8.0/en/alter-user.html, where you should look for this auth_option: { .. | IDENTIFIED WITH auth_plugin .. } -- Peter -- not a MySQL/Oracle person
[17 Jun 2019 15:00]
IGG t
The only problem with that, is that if you don't specify the password it wipes out the password and expires the login (would be catastrophic if I was trying to migrate some of my application / web logins), but if it is a user login, I can't simply expire them (as they may be working off site and need to maintain access), but as I don't know the password, it could take weeks to migrate everyone to MySQL 8.0. But I think it's probably the only option I'm going to get.
[18 Jun 2019 16:26]
MySQL Verification Team
Hi, I am afraid that the only option that we support is the one recommended by my colleague Peter Laursen. Thank you for your interest in our product.