HeidiSQL连接MySQL问题解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35346390/article/details/81978442

今天使用HeidiSQL连接MySQL8.0数据时遇上这样的一个问题“Plugin caching_sha2_password could not be loaded”

 

解决步骤如下:

1、打开MySQL command  line client 

输入root密码的密码(安装时你自己设定的密码)

进入mysql依次执行下面语句:

ALTER USER'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER; #修改加密规则 

ALTER USER'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; #更新一下用户的密码 

FLUSH PRIVILEGES; #刷新权限

重置密码:alter user'root'@'localhost' identified by 'root';

 按照如上步骤,即可!

猜你喜欢

转载自blog.csdn.net/qq_35346390/article/details/81978442