Guide

MySQL databases for your Minecraft server's plugins

Paid servers get two MySQL databases: make one in Settings and connect LuckPerms, CoreProtect, Plan or your own tools to it.

Paid plans come with two MySQL databases. Plugins like LuckPerms, CoreProtect, Plan and many economy plugins can keep their data in one instead of in files: it's faster for big logs, and several servers can share one (the same ranks on your lobby and survival servers). You can also open it from your own tools, like DBeaver, HeidiSQL or a website.

Make one

  1. In the panel, open Settings. Under Access, find Databases.
  2. Name it after what will use it, like luckperms (lowercase letters, digits and _), and choose Make database.
  3. It shows the host, port, database, username and password (choose Show), each with a copy button, and a JDBC URL for plugins that ask for one.

Connect a plugin

Most plugins have a storage or database section in their config. For LuckPerms, in plugins/LuckPerms/config.yml:

storage-method: MySQL
data:
  address: <host>:3306
  database: <database>
  username: <username>
  password: '<password>'

Put the password in quotes, save, and restart the server. The plugin makes its own tables the first time it connects.

Limits and keeping it safe

Only the owner sees and manages the databases. Each can hold up to 5 GB; a full one can still be read and cleaned up, but not written to until it's under the limit. Anyone with the password can connect from anywhere, so keep it out of screenshots and public files. If it gets out, choose New password and update your plugins. Every database is also saved each night, in case something goes badly wrong: ask support.

If the server goes back to free, its databases are locked (nothing can log in) and kept for 30 days; upgrade within that time and they work again as they were. After 30 days they're deleted.