MySQL Establishing SSL connection without server's identity verification warning
发布时间:2018-03-29 09:00,
浏览次数:248
, 标签:
MySQL
Establishing
SSL
connection
without
server
identity
verification
warning
Spring boot试用MySQL数据库,应用启动时报如下警告:
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.
原因是当前版本的MySQL要求使用SSL,解决方法是在数据库连接字串里加上useSSL=true即可。