错误描述

java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:923)at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1725)at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1250)at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2465)at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2498)at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:822)at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:404)at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:317)at java.sql.DriverManager.getConnection(DriverManager.java:664)at java.sql.DriverManager.getConnection(DriverManager.java:247)at com.test.jdbc.JdbcTest01.main(JdbcTest01.java:30)

错误原因

mysql版本与驱动版本不兼容,需要更新mysql驱动的版本

java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.相关推荐

  1. 项目实战解决 java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.

    连接的安装的msql 数据库和连接数据库的代码jar包 不一致到 我这边myql 8的版本 <!--访问mysql--><!--JDBC--><!-- MySql 5.5 ...

  2. 【问题篇】Springboot解决报错“java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_passw”

    场景:从代码仓库拉取以前的代码,运行时发现报错"java.sql.SQLException: Unable to load authentication plugin 'caching_sh ...

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

  4. Unable to load authentication plugin ‘caching_sha2_password‘

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

  5. 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 更改为 ...

  6. Caused by: java.sql.SQLException: Unable to open a test connection to the given database报错无法打开到给定数据库

    在启动hive或则其他要连接数据库的时候 ,都有可能遇到这个问题 [hadoop@hadoop001 bin]$ ./hive Caused by: java.sql.SQLException: Un ...

  7. java.sql.SQLException: Unable to run insert stmt on object 解决办法

    最近在使用 compile 'com.j256.ormlite:ormlite-android:5.0' compile 'com.j256.ormlite:ormlite-core:5.0' 数据库 ...

  8. Caused by: java.sql.SQLException: Column ‘某个字段‘ cannot be null

    完整报错提示: 2020-10-10 18:14:00.139 INFO 13760 --- [nio-8082-exec-9] biz.xcj.conf.db.DataSourceAspect : ...

  9. Oracle Caused by: java.sql.SQLException: sql injection violation, syntax error: syntax error, expect

    参考:https://blog.csdn.net/qq_36326332/article/details/102938147 https://blog.csdn.net/fly_captain/art ...

最新文章

  1. 通过libjpeg-turbo实现对jpeg图像的解码
  2. AI安防火热战况下 算法到场景还有多远?
  3. 【iCore4 双核心板_FPGA】例程八:乘法器实验——乘法器使用
  4. freebsd linux目录,FreeBSD和Linux如何互相访问文件系统
  5. MySQL函数笔记_MySQL笔记之数学函数详解
  6. 「leetcode」225. 用队列实现栈/Implement Stack using Queues
  7. 【原创】公司各个阶段 CTO 需要做什么?(上篇)
  8. Humidex--POJ 3299
  9. 信息安全学习笔记(五)------计算机病毒
  10. 通过相关系数和自由度求置信度
  11. 程序员女朋友都是在哪找的
  12. 计算机图形学课程设计内容及要求
  13. 拼多多店铺的先用后付|盛天海科技
  14. HTML5及CSS3基础知识(持续更新)
  15. 计算机网络安全(1)
  16. 研究生学人工智能有未来吗?点击快速了解就业前景
  17. python numpy安装教程_python3.6下Numpy库下载与安装图文教程
  18. ArcGis配色心得
  19. 碧桂园出品的机器人,能够代替公司人力吗?
  20. 【ABAQUS文档笔记】ABAQUS刚体单元和可变形单元的review

热门文章

  1. sturts调用支付宝接口。
  2. 基于ros的机器人运动控制相关学习(一)
  3. 《Python数据分析基础教程:NumPy学习指南(第2版)》笔记1:第一章 NumPy快速入门
  4. Noip2017那两天的经历
  5. Android Fragmnet-Fragment数据交换以及ListFragment的使用
  6. w ndows10玩游戏蓝屏,Windows 10 电脑玩穿越火线蓝屏原因及解决方法
  7. Qt中Label标签的使用
  8. CSS之毗邻选择器与普通兄弟选择器的区别
  9. P2562 [AHOI2002]Kitty猫基因编码
  10. 支付宝开放平台入驻流程及失败解决