How to import and export a MySQL database
The database is not part of the server backup. If your plugins keep important data in it, such as LuckPerms ranks or CoreProtect logs, save it separately.

Export (back up the database)
- Open the Databases tab.
- Click Export database (SQL) for the database you want.
- Save the
.sqlfile on your computer.
This file is a full copy of the database. You can load it back at any time.
Import (load a database)
- Create a database if you do not have one yet (how to do it).
- Stop the server so no plugin writes data during the import.
- Click Import database (SQL) and choose the
.sqlfile. - Start the server.
Moving from another host
On your old host, export the database to a .sql file. In phpMyAdmin that is usually Export and then Go. Import it here as shown above, then change the connection details in your plugin configs to the new ones from the panel.
phpMyAdmin
Log in to phpMyAdmin opens the database in your browser. Use it when you want to look inside the tables or fix a single entry.
Frequently asked questions
The import fails with an error.
The file may come from a different MySQL version or be too large. Export it again without the CREATE DATABASE option. If it still fails, message us on Discord.
How often should I export?
Before every bigger change, for example before updating a plugin that uses the database.
Pepe