addc123
OOTW_Z 发表于 2022-6-28 10:08
如果想要同步数据,不需要使用mysql,只需要在database.yml修改为例如
其中一个服务器是
SQLite:

我不是一台机子开的bc,我是几台机子一起开的,没办法用本地同步

OOTW_Z
在保证Xconomy是最新版的情况下,排除数据库类写错,有如下可能:
首先你要保证数据库端口是开放的,默认3306,因为报错有链接超时java.sql.SQLTransientConnectionException: XConomy - Connection is not available, request timed out after 30001ms.
其次检查数据库、表是否是Xconomy创建的,否则表项不匹配,会引起 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'UID' in 'where clause'
最后错误相关方法名内含有papi,在上述两个确保正确后,可以删掉/更新papi来进行最后检查
其中蹦极需要改的配置有:
database.yml
Settings:
  #SQLite MySQL
  storage-type: SQLite


#MySQL settings
MySQL:
  host: localhost
  port: 3306
  user: root
  pass: root
  database: data

config.yml
BungeeCord:
  #Whether to enable BungeeCord synchronization
  #After BungeeCord sync is turned on, the console and other plugins will not be able to modify the balance in the server without player
  #Please Set bungeecord to true in the spigot.yml
  enable: false
  #Server ID, keep the ID and the MySQL settings is the same between the servers requiring synchronization
  sign: aa

addc123
OOTW_Z 发表于 2022-6-28 10:21
在保证Xconomy是最新版的情况下,排除数据库类写错,有如下可能:
首先你要保证数据库端口是开放的,默认33 ...

表是自动创建的,这个也都改了,这个插件放到bc里了,但是bc不加载他的配置文件

Lidocaine
addc123 发表于 2022-7-1 08:27
表是自动创建的,这个也都改了,这个插件放到bc里了,但是bc不加载他的配置文件 ...

BC端没有配置文件,插件启用BC即可
表名找不到字段首选考虑数据表的表名写没写对
如果你使用的是 MySQL 8 ,并且无法正常连接到数据库,请下载 DatabaseDrivers (1.17.X以上版本服务器不需要)



OOTW_Z
addc123 发表于 2022-7-1 08:27
表是自动创建的,这个也都改了,这个插件放到bc里了,但是bc不加载他的配置文件 ...

我现在总感觉你没有安装MySQL而且也没配置

addc123
OOTW_Z 发表于 2022-7-1 09:53
我现在总感觉你没有安装MySQL而且也没配置

我的playerdatasql points  BungeeSuite运行都正常的

addc123
本帖最后由 addc123 于 2022-7-1 11:24 编辑
上杉夏相 发表于 2022-7-1 09:41
BC端没有配置文件,插件启用BC即可
表名找不到字段首选考虑数据表的表名写没写对

我确实没有配置文件,是插件版本的问题么但是我看介绍里面说bc端没有配置文件https://www.mcbbs.net/forum.php?mod=viewthread&tid=962904

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