idea+MySQL报错:Sat Jun 22 17:17:35 CST 2019 WARN: Establishing SSL connection without server's identit

Sat Jun 22 17:17:35 CST 2019 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
翻译:

SAT Jun 22 17:17:35 CST 2019警告:不建议在不验证服务器身份的情况下建立SSL连接。根据MySQL5.5.45+、5.6.26+和5.7.6+的要求,如果没有设置显式选项,那么缺省情况下必须建立SSL连接。为了符合不使用SSL的现有应用程序,VerifyServerCertificate属性设置为“false”。您需要通过设置usessl=false显式禁用ssl,或者设置usessl=true并为服务器证书验证提供信任库。

提供服务器证书,咱也没有,就算有咱也不想去找!
修改连接MySQL时的URL即可

spring.datasource.url=jdbc:mysql://localhost:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&useSSL=false

原文来源:IDEA+MYSQL 运行报错:WARN: Establishing SSL connection
本人直接用他的还会报错!!!

你可能感兴趣的:(idea)