今天给同学部署项目的时候用navicat登录的时候报错:2059 - authentication plugin 'caching_sha2_password解决方法。

出现的原因是:mysql8之前版本中加密规则为mysql_native_password

mysql8以后的加密规则为caching_sha2_password

将mysql用户登录加密规则修改为mysql_native_password即可!

1. 点击Window+R  cmd 进入doc

2.输入mysql -uroot -p 进行登录

3.输入你的数据库密码,正确后显示登陆成功 出现Welcome to the MySQL monitor.

4.输入use mysql; 出现Database changed

5.输入select user,host from user;

目的为了查看user的root 对应host是什么 我的对应为localhost

6.修改加密规则:输入ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’;

然后重新用navicat进行登录连接即可:

MySQL连接navicat出现 2059 - authentication plugin ‘caching_sha2_password解决方法相关推荐

  1. MySQL 8.0 error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded

    安装MYSQL8.0+版本之后,使用可视化管理工具Workbench或者Navicat都会产生一个类似的报错. 原因:MYSQL8.0之前的版本中加密规则为mysql_native_password. ...

  2. Navicat 连接MySQL数据库 报错2059 - authentication plugin 'caching_sha2_password'的解决办法...

    #在数据库的命令行中输入以下代码即可解决,密码必须要修改 可以再次执行将密码改回来. use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH ...

  3. 2059 - authentication plugin...错误解决方法

    https://jingyan.baidu.com/article/0aa22375e7966ac8cc0d64b3.html https://www.runoob.com/docker/docker ...

  4. 2059 - authentication plugin 'caching_sha2_password' -navicat连接异常问题解决

    使用navicat 连接 mysql 8.0.11 报  "2059 - authentication plugin 'caching_sha2_password' ..." 解决 ...

  5. Navicat连接MySQL,出现2059 - authentication plugin ‘caching_sha2_password‘的解决方案

    Navicat连接MySQL,出现2059 - authentication plugin 'caching_sha2_password'的解决方案 参考文章: (1)Navicat连接MySQL,出 ...

  6. 【MySQL】MySQL 8 连接出现 2059 - Authentication plugin caching_sha2_password ca

    1.背景 本地连接MySQL报错 2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(../Fr ...

  7. [MySQL] 2059 - Authentication plugin ‘caching_sha2_password‘ cannot be loaded dlope

    1.概述 新装的mysql 无法本地登录 解决方法 在控制台登陆后重新改下密码即可 mysql> alter user 'root'@'localhost' identified with my ...

  8. unable to load mysql_连接mysql出现“Unable to load authentication plugin 'caching_sha2_password”错误...

    这是mysql 8.0版本才出现的问题,原因是mysql 8.0 默认使用 caching_sha2_password 身份验证机制 -- 从原来的 mysql_native_password 更改为 ...

  9. SQLyog连接Mysql8.0提示 Authentication plugin ‘caching_sha2_password‘ cannot be loaded

    1.这里是Mysql8.0登录验证方式更改了 2.直接打开Mysql客户端页面输入11111111是你自己的密码,回车,会提示你修改成功 ALTER USER root@localhost IDENT ...

  10. SpringBoot连接Mysql数据库遇到Unable to load authentication plugin ‘caching_sha2_password解决方案

    遇到问题 o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: S1009 o.h.engine.jdbc.spi.SqlE ...

最新文章

  1. 类的实例方法静态方法类方法属性方法属性
  2. java 堆内存不释放_Java可以写入/读取已释放的堆内存吗?
  3. 像小猪佩奇那样生活,需要多少钱?
  4. c语言课程设计大作业模版,c语言课程设计报告模板下载
  5. SpringCloud 从菜鸟到大牛之六 消息和异步 MQ
  6. SLAM GMapping(8)重采样
  7. Python中的@classmethod修饰符
  8. Picasso遇到的坑
  9. distributed--根索引
  10. java的null类型强转
  11. MIT算法圣经书《算法导论》第四版
  12. Android框架揭秘-Android Binder IPC笔记
  13. 最简单、最详细的装系统教程,你get到了吗?
  14. inter处理器(CPU)的分类
  15. 古老CPU启示录-意义重大的8008 芯片
  16. 一、前端入门学习笔记-标签(1)
  17. 文本分类的14种算法(1)
  18. 26.按之字形顺序打印二叉树
  19. element表格固定某一行_element 表格固定列
  20. Python金额大写转换

热门文章

  1. Android 点击按钮出现弹窗
  2. token是什么?(加密)
  3. 空白页删不掉怎么办,wps怎么删除一页?
  4. 交流电压和电流的有效值计算方法分析
  5. 关于Oracle的PARALLEL MAX SEVERS参数
  6. 自己组装电脑配置清单2022 自己组装电脑需要哪些配件
  7. 究竟云计算就业前景好不好 零基础如何学云计算
  8. 王阳明的心学精髓是什么?
  9. [RK3288][Android6.0] 调试笔记 --- 开机提示mmc rescan错误
  10. java的学习内容,附高频面试题合集