博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【问题解决】连接mysql 8错误:authentication plugin 'caching_sha2_password
阅读量:6939 次
发布时间:2019-06-27

本文共 285 字,大约阅读时间需要 1 分钟。

在刚安装好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  解决

转载地址:http://defnl.baihongyu.com/

你可能感兴趣的文章