新的MySQL驱动程序导致java.sql.SQLNonTransientConnectionException:需要CLIENT_PLUGIN_AUTH

前端之家收集整理的这篇文章主要介绍了新的MySQL驱动程序导致java.sql.SQLNonTransientConnectionException:需要CLIENT_PLUGIN_AUTH前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

如果将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的人来稳定驱动程序.
原文链接:https://www.f2er.com/mysql/433521.html

猜你在找的MySQL相关文章