How to create a MySQL database for your Minecraft server

Plugins and mods · updated 28 November 2026

Most plugins work fine without a database. MySQL is worth it when a plugin stores a lot of data (CoreProtect, for example) or when several servers need to share the same data, such as LuckPerms ranks on a server network.

How to create a database

  1. In the panel open the Databases tab.
  2. Click New database and give it a name, for example luckperms.
  3. The database appears in the list with its server address (such as db.pepehost.pl:3306) and username. Click the eye icon next to it to show the password.
MySQL database for a Minecraft server in the PepeHost panel
The database list with the export, import and phpMyAdmin buttons

Next to the New database button you can see how many databases your plan allows.

phpMyAdmin, import and export

  • Log in to phpMyAdmin opens the database in your browser, where you can browse tables and fix single entries.
  • Export database (SQL) downloads the whole database as a .sql file. This is how you back it up.
  • Import database (SQL) loads a .sql file into the database, for example when you move from another host. See importing and exporting a database.

How to connect a plugin

In the plugin's config, set the storage type to MySQL and copy the details from the panel. For LuckPerms it is plugins/LuckPerms/config.yml:

storage-method: MySQL
data:
  address: address-from-panel:3306
  database: database-name-from-panel
  username: username-from-panel
  password: password-from-panel

Save the file and restart the server. Check the console to make sure the plugin connected without errors.

Warning: never share the database password or post it in public, for example when you paste your config on Discord to ask for help.

Frequently asked questions

The plugin says "Access denied" or "Communications link failure".

Check that the host, port, database name, username and password are copied exactly from the panel, with no space at the end.

Does a server backup include the database?

No. Save the database separately with Export database (SQL).