Databases
Many plugins (permissions, economy, logging, Dynmap) need a database. The Databases tab provisions one for your server without you touching a database server.
Prerequisites
Section titled “Prerequisites”database.readto see the tab,database.createto add a database,database.rotateto rotate a password,database.deleteto remove one.- A database allocation on the server and at least one database host configured by your administrator. Without either, the tab is not shown at all.
Create a database
Section titled “Create a database”- Open Databases. The header shows how many you have used, for example 2 / 3 databases used.
- Choose a host from the Select host dropdown — each option is listed as
name (host:port). - Type a database name (for example
dynmap) and select Create.- The name must start with a letter and use only lowercase letters, numbers and underscores, up to 32 characters.
- Leave it blank or shorter than three characters and the panel generates a safe name for you.
- The Database credentials dialog opens. Copy the Host (shown as
host:port), Database, Username and Password. - Paste them into the plugin’s config file through Files, then restart the server.
Create is disabled once you reach the allocation limit. Deleting the server also removes its database records.
Rotate credentials
Section titled “Rotate credentials”- Select Rotate on the database.
- The Database credentials dialog opens with a fresh password. Copy it immediately — it is shown once.
- Update every plugin config that uses it, then restart the server and check the logs for successful connections.
Delete a database
Section titled “Delete a database”Select Delete and confirm. The dialog warns that this permanently drops the database and its credentials.
Troubleshooting
Section titled “Troubleshooting”- The tab is missing: the server has no database allocation, or no database host is available to you — ask your administrator for one.
- Plugin cannot connect: use the host and port from the credentials dialog,
not
localhost— the database usually runs on shared infrastructure. Then confirm the username and password and that the server was restarted after the config change. - Access denied after rotation: one of your configs still has the old password.
- Limit reached: delete a database you no longer need, or ask your administrator to raise the per-server allocation.
Related
Section titled “Related”- Storage — where administrators configure database hosts
- Files — edit the plugin config that uses the database
- Startup & Variables — variables some plugins need
