2021-09-16 18:12:44 +01:00
# Ledger Databases
2021-09-16 18:24:01 +01:00
Adds support for MySQL and H2 databases in Ledger
## Use
## Common
For both MySQL and H2, 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:
```toml
[database_extensions]
2021-09-17 21:33:19 +01:00
database = "H2"
2021-09-16 18:24:01 +01:00
```
## MySQL
Add the following to the bottom of your Ledger config file:
```toml
[database_extensions]
2021-09-17 21:33:19 +01:00
database = "MYSQL"
2021-09-16 18:24:01 +01:00
url = ""
username = ""
password = ""
```
`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`