介绍
Ledger Databases
Adds support for MySQL, H2, and PostgreSQL databases in Ledger
Use
Common
For both MySQL, H2, and PostgreSQL, you will need to place Ledger Databases in your mods folder along with Ledger 1.1.0 or newer
H2
Add the following to the bottom of your Ledger config file:
[database_extensions]
database = "H2"
MySQL
Add the following to the bottom of your Ledger config file:
[database_extensions]
database = "MYSQL"
url = ""
username = ""
password = ""
properties = []
maxPoolSize = 10
connectionTimeout = 60000
url: Must be URL of database with /<database_name> appended. An example URL would be localhost/ledger. You can optionally add port information such as localhost:3000/ledger
PostgreSQL
[database_extensions]
database = "POSTGRESQL"
url = ""
username = ""
password = ""
properties = []
maxPoolSize = 10
connectionTimeout = 60000
SQLite
[database_extensions]
database = "SQLITE"
Connector properties
For some databases, such as MySQL, you can provide properties to the database connector. For each property, add a string entry to the properties array.
properties = ["useJDBCCompliantTimezoneShift=true", "useLegacyDatetimeCode=false", "serverTimezone=UTC"]
常见问题
Ledger Databases 支持哪些 Minecraft 版本?
Ledger Databases 支持 Minecraft Java 版 1.17–26.2,共 32 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Ledger Databases 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
DrexHD 的其他作品
查看全部 →CrashExploitFixer
这个模组修复了在Minecraft中发现的许多崩溃漏洞。
VillagerConfig
基于数据驱动交易的高级村民配置
quick pack
优化数据包/资源包 zip 文件的加载时间
Ledger
A serverside logging mod
评论
登录后评论和评分