Wed May 31 15:11:36 CST 2023 WARN: 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.
时间: 2024-04-29 22:19:52 浏览: 117
kafka调试中遇到Connection to node -1 could not be established. Broker may not be available.
5星 · 资源好评率100%
这是一个 MySQL 数据库连接时的警告信息,意思是建立 SSL 连接时没有进行服务器身份验证,不建议这样做。根据 MySQL 版本的要求,如果没有显式设置 SSL 选项,则必须默认建立 SSL 连接。为了兼容不使用 SSL 的应用程序,verifyServerCertificate 属性被设置为“false”。你需要显式地禁用 SSL,将 useSSL 设置为 false,或者设置 useSSL 为 true 并提供 truststore 以进行服务器证书验证。
阅读全文