Skip to content
Hosting · Files, backups and database

Migrating from SQLite to MySQL

How to transfer plugin data from a file to a database without loss: built-in migrations, export-import, and checking the result.

Updated August 13, 2026

SQLite is a file next to the plugin, MySQL is a separate database. You need to migrate when your server grows or you launch a network.

The right way: built-in migration

Many plugins can move data on their own:

lp migrate mysql               LuckPerms
co migrate                     some CoreProtect versions

Check the documentation for your specific plugin: most have a migration command or instructions.

General procedure

  1. Stop the server.
  2. Make a copy of the plugin folder and the database file — Backups.
  3. Configure the MySQL connection in the plugin config — MySQL for plugins.
  4. Run the migration (or export from SQLite and import into MySQL with a third-party tool such as DBeaver).
  5. Start the server and check the data.

Verification

Check the contents, not just whether the server started: player groups, balances, bans, logs. An empty database instead of the migrated data looks like “everything works” until players notice their permissions are gone.

If the data didn't transfer

Don't leave the server running on an empty database for long: the plugin will start writing new data there, and merging it with the original will be harder. Restore SQLite from your copy and try again.

Migrating back

You can do it with the same tools, but you usually don't need to: MySQL is faster and more convenient in almost every way.

Minecraft hostingYour server runs while you are offlineCreate server