Database¶
Configures Guard persistence engine: embedded SQLite (guard.db, default) or external MySQL/MariaDB via HikariCP.
Summary¶
- Plugin:
ZellysGuard - Configuration file:
modules/database/config.yml - Default
enabledstate:true - Commands: Managed through
/zg configand/zg reload(switching engines requires a full server restart). - Permissions:
zguard.admin(operators) - Interfaces (Menus / Dialogs / Bedrock Forms): Editable fields exposed inside Admin Config Editor (
/zg config); no standalone module hub screen. - Storage:
modules/database/config.yml,guard.db(at plugin data folder root)
Limits and verification status¶
Includes enabled: true in modules/database/config.yml; legacy root database.yml migrates automatically to database.yml.migrated.
Configuration keys (modules/database/config.yml)¶
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
true |
Module switch; requires a restart |
storage.type |
string |
sqlite |
sqlite or mysql |
storage.sqlite.file |
string |
guard.db |
SQLite file name |
storage.mysql.host |
string |
localhost |
MySQL host |
storage.mysql.port |
integer |
3306 |
MySQL port |
storage.mysql.database |
string |
guard |
MySQL database |
storage.mysql.user |
string |
guard |
MySQL user |
storage.mysql.password |
string |
"" |
MySQL password |
storage.mysql.pool_size |
integer |
10 |
MySQL pool size |