md_blockchain学习笔:Unable to load authentication plugin 'caching_sha2_password'

版权声明: https://blog.csdn.net/shoneworn/article/details/80708137

遇到这个问题了。是由于在mysql8之前的版本使用的密码加密规则是mysql_native_password,但是在mysql8则是caching_sha2_password。

这个问题好搜。一搜就搜到答案了。

https://liaozixu.com/article/java/the-pit-of-mysql80-cachingsha2password.html

这篇文章写得很详细。上面讲的很详细,我讲下我自己的方法,是直接去user表中修改密码加密规则。

show databases;

use mysql

user表在这个数据库里

 show tables;

给你确认下,的确在这个数据库里。呵呵

 ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '*****';

*****表示你自己的root账户的密码。

这就好了。

 

猜你喜欢

转载自blog.csdn.net/shoneworn/article/details/80708137