Skip to content
Hosting · Files, backups and database

Moving plugins to MySQL

Why plugins need a shared database: setting up LuckPerms, CoreProtect, bans, and economy on MySQL, and what this gives a server network.

Updated August 13, 2026

By default, plugins store data in files or SQLite. This works as long as you have a single server and few players.

When to switch

  • Server network: permissions and bans must be shared — Server network.
  • Thousands of unique players: file storage slows down startup and saving.
  • You need external access to the data: a website, a bot, statistics.

Example: LuckPerms

plugins/LuckPerms/config.yml:

storage-method: mysql
data:
  address: host:port
  database: db_name
  username: user
  password: password
  table-prefix: luckperms_

Data is not migrated automatically after you change the storage backend:

lp migrate mysql

or export and import via lp export and lp import.

Other plugins

  • CoreProtect — the mysql: true section in config.yml. Useful: the log database grows fast — CoreProtect.
  • Ban plugins — a shared database gives you network-wide bans.
  • Economy — a shared database is required, otherwise balances will diverge.
  • AuthMe — MySQL speeds up login with a large player count.

Table prefixes

If several plugins or several servers use the same database, set different table prefixes — otherwise you will get name conflicts.

Backups

Switching to MySQL means the world no longer contains all of the server's data. Set up a regular dump — Database dump.

Minecraft hostingYour server runs while you are offlineCreate server