【发布时间】:2018-02-09 23:24:21
【问题描述】:
在尝试连接到与代理位于同一台计算机上的 MySQL 数据库时,发生此错误:
00:17:43 [SCHWERWIEGEND] Fri Sep 01 00:17:43 CEST 2017 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.
这是连接设置文件...
MySQL:
Host: localhost
Port: '3306'
Database: Sad-MS-Datenbank
Username: root
Password: 1234567890
有人知道怎么解决吗?
附:可以从另一台计算机代理连接到数据库。但不是来自本地主机。
【问题讨论】:
-
添加你的mysql版本可能有帮助吗?
-
@Riccardo -- 如果这不是重复的,您需要显示其余代码 -- 包括 URL 连接字符串