Navicat连接本地mysql报错-caching_sha2_password

 

查询用户加密方式:
select user,plugin from user where user='root';

修改用户加密方式改为mysql_native_password。
alter user 'root'@'localhost' identified with mysql_native_password by '123123';

执行命令flush privileges使权限配置项立即生效
flush privileges;

再次连接

 

posted @ 2023-05-18 13:24  花心大萝卜li  阅读(122)  评论(0)    收藏  举报