浮尔魔司Ya
变量刚开始会显示 然后有几个玩家进来就不显示了报错如下



浮尔魔司Ya
变量是正确的 点卷也连了数据库 由于是1.12 所以不能更新版本 对接着充值插件 想问一下 这个如何解决?

hapijun2
关于这个问题,我洗不明白,来个高手回答一下

hapijun2
变量是函数变量??

极光酋长
本帖最后由 极光酋长 于 2022-5-28 09:46 编辑
[PlayerPoints] Could not create getter statement.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
......

实际上数据库那边给插件标记成连接超时,并拒绝了请求。
    网上有一些解决办法,可以参考一下:https://www.pudn.com/news/628f8317bf399b7f351e69eb.html
                                                          https://blog.csdn.net/qq_38904700/article/details/79514791

    另外,如果你的数据库需要强制SSL连接的话,建议在插件配置文件里吧use-ssl设置为true;但如果你第一次连接没打开也能连上,可能就没有这个SSL的问题

慕由
额,点券启用数据库要前置啊,下载前置了吗

酷泽Ckupe
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

初步判定是PlayerPoints数据库连接时开启了SSL连接,请找到PlayerPoints config下述内容
  # If the database connection should use SSL
  # You should enable this if your database supports SSL
  # Default: false
  use-ssl: true

use-ssl改为false

浮尔魔司Ya
高情商水怪 发表于 2022-5-28 13:27
初步判定是PlayerPoints数据库连接时开启了SSL连接,请找到PlayerPoints config下述内容

use-ssl改为fals ...

并不是 我一直都是false而且装了前置

浮尔魔司Ya
慕由 发表于 2022-5-28 11:15
额,点券启用数据库要前置啊,下载前置了吗

安装了前置SQL

浮尔魔司Ya
极光酋长 发表于 2022-5-28 09:38
实际上数据库那边给插件标记成连接超时,并拒绝了请求。
    网上有一些解决办法,可以参考一下:https:// ...

默认是关闭的

星星:p
The last packet successfully received from the server was 553,674 milliseconds ago.  The last packet sent successfully to the server was 553,674 milliseconds ago. is longer than the server configured value of 'wait_timeout'.

你的插件长时间没有和数据库进行通讯,导致数据库自动关闭了连接。
可以将数据库变量"wait_timeout"适当调高,以避免出现这个问题。