Unable to load authentication plugin caching_sha2_password
This error message typically occurs when trying to connect to a MySQL database using an older version of the MySQL client. The caching_sha2_password authentication plugin was introduced in MySQL 8.0.4 and is not supported in older versions.
To resolve this issue, you can either upgrade your MySQL client to a version that supports the caching_sha2_password authentication plugin, or you can change the authentication plugin used by the MySQL server to one that is supported by your client.
To change the authentication plugin used by the MySQL server, you can modify the following line in the MySQL configuration file (my.cnf or my.ini):
default_authentication_plugin=caching_sha2_password
Change the value of the default_authentication_plugin parameter to one of the following values:
- mysql_native_password
- sha256_password
Save the changes to the configuration file and restart the MySQL server for the changes to take effect.
Note that changing the authentication plugin used by the MySQL server may affect the security of your system, so it is recommended that you consult with a database administrator or security expert before making any changes
原文地址: https://www.cveoy.top/t/topic/fJUL 著作权归作者所有。请勿转载和采集!