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"] How to Install Ledger Databases (Mod)
Ledger Databases by Potatoboy9999 is verified for Fabric across Minecraft versions 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2 (latest release: 1.2.2, file size: 6.6 MB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Ledger Databases file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Updated to 26.1
- Added MariaDB support by @jjurek98 in https://github.com/QuiltServerTools/Ledger-Databases/pull/13
- Add maxLifetime config option
Added connection pooling