Configuration
Choose the Eggs that use Database+, set read-only users and servers, query, import and backup limits, sharing and the scheduled tasks.
Settings appear only while Database+ is enabled. Open Admin → Extensions and click the settings button on the Database+ card.
Allowed Eggs
Choose which Eggs use Database+ as their Databases tab. Leave it empty to use it on every server. Servers on other Eggs keep the standard Pterodactyl Databases tab, and the Database+ endpoints refuse their requests.
Database+ works with any game, not only Minecraft.
Settings are grouped in sections. Pick a section from the dropdown above the form.
Overview
| Setting | Default | What it does |
|---|---|---|
| Record usage history | On | Every hour the Panel stores the size, rows, tables and connections of each database to draw the usage graph. |
| Keep usage history for (days) | 30 | How long hourly samples are kept, from 1 to 90 days. |
Tables
| Setting | Default | What it does |
|---|---|---|
| Rows per page | 50 | How many rows the table browser loads at once. Users can pick another page size. |
| Allow Empty and Drop | On | Shows the buttons that truncate or drop a table. Read-only users never see them. |
SQL Console
| Setting | Default | What it does |
|---|---|---|
| SQL console | On | Turns the console on. Queries always run as the database's own user, never as the database host's administrator account. |
| Read-only for everyone | Off | Only SELECT, SHOW, DESCRIBE and EXPLAIN are allowed. Root administrators are never restricted. |
| Read-only servers | Empty | Every user of these servers can only read data, in the console and in the table browser. |
| Read-only users | Empty | These users can only read data on every server they can open. |
| Query time limit (seconds) | 30 | Statements that run longer are stopped by the database server. Lock waits are limited too. |
| Most rows shown per result | 1000 | Larger results are cut off and marked. |
| Queries kept in history per user | 50 | Set to 0 to stop saving query history. |
Users without the Update database permission get a read-only console automatically.
Import & Export
| Setting | Default | What it does |
|---|---|---|
| Largest import (MB) | 256 | Applies to uploads and to files picked from the server; the compressed size for .sql.gz. |
| Import from other database servers | On | Users can copy a database from any MySQL or MariaDB server they have a login for, or from another database on this Panel that they can access. |
| Save exports into server files | On | Lets users write an export straight into their server's files. |
| Recent imports and exports kept per server | 20 | Older log entries and their files are removed by the cleanup task. |
Backups
| Setting | Default | What it does |
|---|---|---|
| Database backups | On | Backups are stored on the Panel in storage/app/private/database-plus, outside the server files. |
| Scheduled backups | On | Lets users back up a database every hour, 6 hours, 12 hours, day or week. |
| Most backups kept per database | 30 | The highest value of the retention slider. Locked backups count too. |
| Largest database to back up (MB) | 1024 | Bigger databases are refused before the backup starts. |
Sharing
| Setting | Default | What it does |
|---|---|---|
| Shared databases | On | Owners can share a database with their other servers. It appears there with the same login. |
| Servers per shared database | 10 | The most servers one database can be shared with. |
Permissions
Database+ uses the Panel's own database permissions, so subusers need nothing new:
| Permission | Allows |
|---|---|
| database.read | Overview, tables, structure, read-only queries, exports to the browser and backup downloads |
| database.update | Editing rows, Empty and Drop, all queries, imports, restores, backups, schedules and sharing |
| database.delete | Deleting backups and databases |
| database.view_password | Seeing passwords in the credentials and connection strings |
| file.read-content | Importing a file from the server's files |
| file.create | Saving an export into the server's files |
Scheduled tasks
Two tasks run through the Panel's scheduler, so the Panel's cron entry must be active:
| Task | When | What it does |
|---|---|---|
database-plus:usage | Every hour | Records the usage samples for the graph. |
database-plus:schedule | Every minute | Runs due backups and cleans up old exports, unfinished uploads and stopped jobs. |
Imports, exports and backups run in a background process on the Panel, so long jobs never time out in the browser.
How settings are stored
Settings are saved in the Panel's database and apply right away. Users who already have the Panel open see the Databases page appear or disappear after reloading it.