[09:30:49 WARN]: [Craft Scheduler Thread - 98] WARN fr.xephi.authme.libs.com.zaxxer.hikari.pool.PoolBase - AuthMeMYSQLPool - Failed to valid
ate connection com.mysql.jdbc.JDBC4Connection@c4c3edd (No operations allowed after connection closed.). Possibly consider using a shorter ma
xLifetime value.
这是authme的报错
同时我自己写的一个插件也报了这样的错,然后mysql数据库操作就都用不了了
ate connection com.mysql.jdbc.JDBC4Connection@c4c3edd (No operations allowed after connection closed.). Possibly consider using a shorter ma
xLifetime value.
这是authme的报错
同时我自己写的一个插件也报了这样的错,然后mysql数据库操作就都用不了了
用什么核心捏
链接被关, 可能是默认8小时的timeout超了.
修改过吗.
修改过吗.
ecyber 发表于 2022-8-12 10:10
用什么核心捏
Paper Spigot 1.12.2 - 1620
本帖最后由 Daiyangcheng 于 2022-8-12 10:55 编辑
修改过了
服务器上mysql的超时时间设置为如下
复制代码
authme中的配置文件设置为:
复制代码
凯旋KaiSenn 发表于 2022-8-12 10:10
链接被关, 可能是默认8小时的timeout超了.
修改过吗.
修改过了
服务器上mysql的超时时间设置为如下
- wait_timeout = 2000
- interactive_timeout = 2000
authme中的配置文件设置为:
- # Overrides the size of the DB Connection Pool, default = 10
- poolSize: 10
- # The maximum lifetime of a connection in the pool, default = 1800 seconds
- # You should set this at least 30 seconds less than mysql server wait_timeout
- maxLifetime: 1800
Daiyangcheng 发表于 2022-8-12 10:54
修改过了
服务器上mysql的超时时间设置为如下
尝试设置长一点
wait_timeout= 86400 (24小时)
https://www.mcbbs.net/forum.php?mod=viewthread&tid=868245
也可以参考一下这个