java - 新的 MySQL 驱动程序导致 java.sql.SQLNonTransientConnectionException : CLIENT_PLUGIN_AUTH is required

标签 java mysql ssl jdbc

如果将 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 的人员稳定驱动程序。

关于java - 新的 MySQL 驱动程序导致 java.sql.SQLNonTransientConnectionException : CLIENT_PLUGIN_AUTH is required,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37348572/

相关文章:

java - 无法访问我的 API,我的 URL 有误吗?

mysql - Rails 4 ActiveRecord 查询 : bind variables in order clause

python - 在 python 中加密到我的 HTTP 代理的连接

java - IntelliJ IDEA : What qualifies as an SDK?

java - 在 JLabel 中显示 JComboBox 所选项目

mysql - 根据两个表选择记录

php - 如何将 PHP7 的 $mysqli->real_escape_string 与数组一起使用

java - Spring Boot 和 Camel Mail SSL 配置

ssl - Kafka Broker SSL - NoAuth 异常 - KeeperErrorCode NoAuth for/brokers/ids

java - ADT/Eclipse 升级后库出现问题