Navicat 连接MySQL数据库出现错误:2059 - authentication plugin 'caching_sha2_password

出现这个错误的原因是因为MySQL8.0.19数据库使用的加密方式是:caching_sha2_password,

解决:

 1 show variables like 'default_authentication_plugin查看加密信息

 2 

修改root账户的加密方式为:mysql_native_password

使用如下指令修改:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码';
posted @ 2022-08-19 10:39  -小马  阅读(29)  评论(0编辑  收藏  举报