mysql database connection error: 2059-Authentication plugin'caching_sha2_password'cannot be loaded

报错:2059-Authentication plugin'caching_sha2_password'cannot be loaded

the reason:

  Changes in the new version of the mysql database encryption, which led password Navicat connects the input of the password can not be entered when installing the match, then how to solve this problem? Very simple, it requires only one thing - the code

1. Open the MySQL 8.0 Command Line Client

2. Enter the password
3. Change your password

ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '123456';
1

4. Reconnect Navicat, the test is successful!

----------------
Disclaimer: This article is the original article CSDN bloggers "Jiajun Hao _Ellen", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/ellen5203/article/details/93903259

Guess you like

Origin www.cnblogs.com/meili970202/p/12575567.html