加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程 > 正文

新的MySQL驱动程序导致java.sql.SQLNonTransientConnectionExcep

发布时间:2021-03-31 15:18:18 所属栏目:编程 来源:网络整理
导读:如果将MySQL JDBC驱动程序从5.1.38更改为6.0.2,则会出现以下异常 java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required 这种异常发生在正常的JDBC启动中. 可能这可能与SSL有关,因为我也得到以下消息 Establishing SSL connection w

如果将MySQL JDBC驱动程序从5.1.38更改为6.0.2,则会出现以下异常

java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

这种异常发生在正常的JDBC启动中.

可能这可能与SSL有关,因为我也得到以下消息

Establishing SSL connection without server’s identity verification is
not recommended. According to MySQL 5.5.45+,5.6.26+ and 5.7.6+
requirements SSL connection must be established by default if explicit
option isn’t set. For compliance with existing applications not using
SSL the verifyServerCertificate property is set to ‘false’. You need
either to explicitly disable SSL by setting useSSL=false,or set
useSSL=true and provide truststore for server certificate
verification.

在以前的版本中没有. 最佳答案 这听起来像是回归.是否有特殊原因要切换到6.0.2?如果没有,我会回到5.1.38并在三个月之后给6.x一次让MySQL的人来稳定驱动程序.

(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读