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

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

时间:2022-08-19 10:44:16浏览次数:62  
标签:sha2 加密 plugin 2059 authentication caching 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 '密码';

标签:sha2,加密,plugin,2059,authentication,caching,password
From: https://www.cnblogs.com/ma13461749958/p/16601225.html

相关文章