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

解决办法:

可以更换版本但是感觉治标不治本,建议修改身份验证机制

1、登陆mysql

在mysql的bin目录下打开cmd(默认是C:\Program Files\MySQL\MySQL Server 8.0\bin)

输入:mysql -uroot -p     接着输入密码

2、登陆mysql成功之后输入:

alter user 'root'@'localhost' identified by 'root' password expire never;

alter user 'root'@'localhost' identified with mysql_native_password by 'root'

flush privileges;

其中root为mysql密码

完美解决

unable to load mysql_连接mysql出现“Unable to load authentication plugin 'caching_sha2_password”错误...相关推荐

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

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

  2. golang连接mysql报错:this authentication plugin is not supported 解决方案

    MySQL升级8.0以上版本后,在用第三方库github.com/Go-SQL-Driver/MySQL打开数据库时会报错this authentication plugin is not suppo ...

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

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

  4. 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 ...

  5. java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.

    错误描述 java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.at com.mysq ...

  6. Unable to load authentication plugin ‘caching_sha2_password‘

    Mybatis反向生成报错 一.报错内容如下 Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin: ...

  7. 【问题解决】连接mysql 8错误:authentication plugin 'caching_sha2_password

    在刚安装好mysql8,使用native连接的时候报错 authentication plugin 'caching_sha2_password'... 首先确保服务已开启,然后通过cmd命令进入my ...

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

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

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

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

最新文章

  1. python字符串基本形式_python字符串常用方式
  2. 记一次TIME_WAIT网络故障
  3. DSP/BIOS中的数据类型
  4. python 矩形补正方形
  5. Eclipse转Intellij IDEA
  6. C++ Primer 5th笔记(chap 19 特殊工具与技术)typeid运算符
  7. 消息发送 C语言版和 Visual Basic Script版
  8. 字符串反转python_Python 反转字符串(reverse)的方法小结
  9. Android STL PORT
  10. Linux Centos安装步骤
  11. Python机器学习:线型回归法01简单线型回归法
  12. Selenium +Java自动化环境安装
  13. iPhone 13 Pro Max Magsafe保护壳曝光:命名方式疑似确认
  14. GitLab5.3修改项目仓库名称后wiki不能访问
  15. windows版mysql5.7.18安装
  16. Windows10下python3.5的sklearn库安装
  17. 基本排序算法比较与选择
  18. SQLMAP注入拖库过程 1
  19. 人体的神经系统图 分布,人神经系统分布图高清
  20. 天荒地老修仙功-第七部:Dubbo基本使用与原理详解

热门文章

  1. 带版本号的符号 versioned symbol
  2. Win10 主题 美化 动漫
  3. SIMATIC S7-1200以及SIMATICS G120组态
  4. js下载文件修改文件名 (跨域)
  5. 元宇宙浪潮震撼来袭,抓住时机,齐心协力
  6. 【Neuralink 与大脑的神奇未来】Part 3:脑机接口
  7. 解决海康威视高清网络球机云台不能上扬的问题
  8. MacBook苹果电脑绕过BootCamp安装Win10双系统
  9. 【堆排序C/C++】
  10. WEB 前端模块化方案完全总结