- Newest
- Most votes
- Most comments
Mark, I understand your frustration with the upgrade process for your RDS MySQL instance. Unfortunately, you've encountered a known limitation with Amazon RDS for MySQL.
As of RDS for MySQL version 8.0.34 and higher, the default authentication plugin is set to mysql_native_password, and this setting cannot be changed by users. This is a deliberate restriction imposed by AWS for RDS MySQL instances.
The users you mentioned, 'rdsrepladmin' and 'mysql.sys', are indeed system users created and managed by AWS. You don't have permissions to alter these users directly, which is why you're receiving the "Access denied" error when trying to change their authentication method.
Currently, there isn't a direct workaround for changing the authentication plugin for these system-managed users. AWS doesn't support changing the Authentication Plugin for RDS MySQL instances.
However, this shouldn't prevent you from upgrading your RDS instance. The pre-upgrade check you're seeing is likely a warning rather than a blocker for the upgrade process. AWS is aware of this situation and has designed the upgrade process to handle these system users appropriately.
My recommendation would be to proceed with the upgrade despite this warning. If the upgrade still fails, you should contact AWS Support for assistance, as they may need to provide a specific solution for your case.
For your application users, you can still use the ALTER USER command to change their authentication method to caching_sha2_password if desired, but this isn't strictly necessary for the upgrade process.
Remember, while changing the default_authentication_plugin setting isn't possible, you can still create new users with the caching_sha2_password plugin if needed for your application.
If you continue to face issues with the upgrade process, don't hesitate to open a support ticket with AWS. They can provide more specific guidance based on your exact RDS configuration and requirements.
Sources
How do I change the Authentication Plugin for users mysql.sys, mysql.session, etc, on AWS RDS MySQL? | AWS re:Post
Precheck descriptions reference for Aurora MySQL - Amazon Aurora
For those experiencing what looks like the same problem, it was actually a low storage issue in the end, I increased the storage of my db instance and it seems to work.
The logs actually stated this but i didn't scroll down far enough as i thought the errors stopped at the authentication issue.
:facepalm
Relevant content
asked 2 years ago
asked 4 months ago
