Attempting to Connect to MySQL 8.0.4 or Later Fails: Authentication Plugin caching_sha2_password is not Supported
(Doc ID 2347540.1)
Last updated on MARCH 21, 2019
Applies to:MySQL Connectors - Version 8.0 to 8.0 [Release 8.0]
MySQL Utilities - Version 1.5.2 and later
MySQL Server - Version 8.0 and later
MySQL Connectors - Version 1.0 to 5.1 [Release 1.0 to 5.1]
MySQL Cluster - Version 7.6 and later
Information in this document applies to any platform.
After upgrading to MySQL Server 8.0.4 or after installing it, attempts to connect fails with an error saying that the caching_sha2_password plugin is not supported or similar.
The exact error message depends on which library/connector is used for the connection. Examples are:
- Connector/J 5.1.45:
MySQL Server 8.0.4 or later has been installed or an existing MySQL instance have been upgraded.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
Symptoms Changes Cause Solution References My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.