当前位置:Gxlcms > 数据库问题 > 【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

时间:2021-07-01 10:21:17 帮助过:28人阅读

解决办法:

  1.登陆数据库:mysql - u root -p;

  2.切换数据库:use mysql;

  3.修改加密方式:ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER;

  4.更新密码:ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘自己的新密码‘;

  5.刷新权限:FLUSH PRIVILEGES;

  注:很多博客上都没有第3步,只有第4步,使得频繁报错,多亏了此博客。

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

标签:mysql   切换数据库   user   strong   not   刷新   题记   ges   分析   

人气教程排行