dddfly
端子出现这个报错怎么解决com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 128,287,721 milliseconds ago.  The last packet sent successfully to the server was 128,287,721 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

起床战争端子 版本1.3.4

schorsch
本帖最后由 schorsch 于 2018-9-10 02:24 编辑

没用过此插件
https://www.spigotmc.org/resources/bedwars-rel.6799/
这个么。。

看了下更新日志
在1.3.5的时候重写了mysql 因为有很多的问题。
MySQL stats rewrite
As there have been many issues with MySQL support, the whole database system has been rewritten.

最新版本是1.3.6


基本是这
  1. jdbc:mysql://mysql_ip地址:mysql端口/数据库名称?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false
复制代码
autoReconnect=true

如果不是这个的话。就当我没有答(小声bb)

游侠崔斯特
数据库相应太快了  wait_timeout 这个改长点

dddfly
dincan 发表于 2018-9-10 09:22
数据库相应太快了  wait_timeout 这个改长点

哪里改是在mysql配置吗?

nihongchun
autoReconnect=true 这里开启 安装目录里改

schorsch
dddfly 发表于 2018-9-10 04:14
哪里改是在mysql配置吗?

https://blog.csdn.net/cenfei78325747/article/details/7854611

看这篇博客

游侠崔斯特
dddfly 发表于 2018-9-10 11:14
哪里改是在mysql配置吗?

默认是装载C盘的 你右键桌面的图标属性看地址