xxw1754352621 / java-dev

愿景:提升自我知识容量,扩展自我知识边界
Apache License 2.0
6 stars 2 forks source link

mysql数据库连接useSSL=false #18

Closed xxw1754352621 closed 5 years ago

xxw1754352621 commented 5 years ago

项目启动mysql提醒:

Wed Jun 05 11:33:57 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=false, or set useSSL=true and provide truststore for server certificate verification.

解决方案:

https://blog.csdn.net/UIYOOOO/article/details/80301411

xxw1754352621 commented 5 years ago

mysql服务端,相关证书设置: https://my.oschina.net/u/2362245/blog/1799475