RONGYAO749
本帖最后由 RONGYAO749 于 2021-3-28 13:41 编辑

配置AAC5的时候,连接数据库时显示:
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.

简单的解决方案:
在配置文件中,按照这个格式写
database: 数据库名称?useSSL=false


在Spigot刷帖子的时候看到了有类似的询问贴,针对上诉解决有一个回复为:


This disables the usage of SSL for MySQL. The error itself is not dangerous at all and won't affect any in-game experiences rather than throwing that error because it can't establish a SSL connection.

大意过来就是:这将禁用MySQL的SSL使用,这个错误并不危险,而且对游戏体验不会有任何影响。并非无法建立SSL连接而抛出的错误


而关于这个方法个人认为安全性也不用太担心。相当一部分腐竹的服务器数据库和服务端是搭建在同一台机器或者同一局域网内,关闭后安全性也许不用过多去考虑。

如果喜欢折腾的朋友可以去折腾一下


孩紫MC
其实导致这个问题是MySQL的版本高于了5.7。。Mariadb那边倒是忘了是啥版本开始要求的。。不过不加useSSL=false也不想影响游戏 不过却很影响翻后台log emmmm

LINKCHUM
感谢分享教程,学到了

Themanole
改了以后没用而且还报错了,,

第一页 上一页 下一页 最后一页