问题解决连接mysql 8错误:authentication plugin 'caching_sha2_password
Posted sunny3096
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题解决连接mysql 8错误:authentication plugin 'caching_sha2_password相关的知识,希望对你有一定的参考价值。
在刚安装好mysql8,使用native连接的时候报错
authentication plugin ‘caching_sha2_password‘...
首先确保服务已开启,然后通过cmd命令进入mysql的localhost数据库
mysql -hlocalhost -uroot -p123456
然后进入mysql数据库
use mysql;
修改密码
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘‘;
FLUSH PRIVILEGES;
重新连接数据库
OK 解决
以上是关于问题解决连接mysql 8错误:authentication plugin 'caching_sha2_password的主要内容,如果未能解决你的问题,请参考以下文章