首页 > 数据库技术 > 详细

NaviCat连接mysql出现加密方式错误的解决方案:

时间:2020-07-01 11:08:38      阅读:103      评论:0      收藏:0      [点我收藏+]

问题:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password

技术分享图片

 

解决方法:1.查看环境变量中是否添加mySQL路径,如果没有,添加上,方法如下:

https://blog.csdn.net/weixin_43860261/article/details/90106077

  2.修改加密方式:在cmd中执行

mysql -u root -p

use mysql;

select user,plugin from user where user=’root’;

Alteer user ‘root‘@‘localhost‘ Identified by ‘gao910329‘ password expire never;

alter user ‘root‘@‘localhost‘ identified with mysql_native_password by ‘gao910329‘;
 
flush privileges;

  

NaviCat连接mysql出现加密方式错误的解决方案:

原文:https://www.cnblogs.com/gao109214/p/13218062.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!