java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.
错误描述
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‘.相关推荐
- 项目实战解决 java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.
连接的安装的msql 数据库和连接数据库的代码jar包 不一致到 我这边myql 8的版本 <!--访问mysql--><!--JDBC--><!-- MySql 5.5 ...
- 【问题篇】Springboot解决报错“java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_passw”
场景:从代码仓库拉取以前的代码,运行时发现报错"java.sql.SQLException: Unable to load authentication plugin 'caching_sh ...
- 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 ...
- Unable to load authentication plugin ‘caching_sha2_password‘
Mybatis反向生成报错 一.报错内容如下 Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin: ...
- 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 更改为 ...
- 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 ...
- 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' 数据库 ...
- 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 : ...
- 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 ...
最新文章
- 通过libjpeg-turbo实现对jpeg图像的解码
- AI安防火热战况下 算法到场景还有多远?
- 【iCore4 双核心板_FPGA】例程八:乘法器实验——乘法器使用
- freebsd linux目录,FreeBSD和Linux如何互相访问文件系统
- MySQL函数笔记_MySQL笔记之数学函数详解
- 「leetcode」225. 用队列实现栈/Implement Stack using Queues
- 【原创】公司各个阶段 CTO 需要做什么?(上篇)
- Humidex--POJ 3299
- 信息安全学习笔记(五)------计算机病毒
- 通过相关系数和自由度求置信度
- 程序员女朋友都是在哪找的
- 计算机图形学课程设计内容及要求
- 拼多多店铺的先用后付|盛天海科技
- HTML5及CSS3基础知识(持续更新)
- 计算机网络安全(1)
- 研究生学人工智能有未来吗?点击快速了解就业前景
- python numpy安装教程_python3.6下Numpy库下载与安装图文教程
- ArcGis配色心得
- 碧桂园出品的机器人,能够代替公司人力吗?
- 【ABAQUS文档笔记】ABAQUS刚体单元和可变形单元的review