MySQL Databases

Control Panel
12 June 2026 · Updated 15 June 2026 · By Josh P
MySQL Databases

Some Minecraft plugins store their data in a database instead of flat files - LuckPerms, CoreProtect, and most economy plugins all support this. The MySQL Databases section in your Connections tab lets you create and manage databases directly from the control panel. MCHosts runs MariaDB under the hood, which is fully compatible with any plugin that supports MySQL.

This feature is available on Iron plan and above.


Creating a database

  1. Open the control panel
  2. Click the Connections tab
  3. Scroll down to MySQL Databases
  4. Click + Create Database
  5. Enter a label - use the plugin name in lowercase, for example luckperms or coreprotect
  6. Click Create Database

Create Database

Your database is created in a few seconds. The credentials appear immediately on a card in the Databases section.


Your database credentials

Each database card shows everything you need to connect a plugin:

FieldDescription
Hostdb.mchosts.com.au - the database server address
Port3306 - the standard MySQL port
DB TypeMariaDB - use this when your plugin asks for a database type
DatabaseThe database name - generated automatically from your label
UsernameA unique username scoped to this database only
PasswordA randomly generated password

Click the copy icon next to any field to copy it to your clipboard.


Using your database with a plugin

Open your plugin's config file and paste in the credentials. Every plugin is slightly different, so always check that plugin's documentation for the exact field names. Here is an example using LuckPerms:

  1. Stop your server
  2. In the File Manager, open plugins/LuckPerms/config.yml
  3. Find the storage-method line and change it to mariadb
  4. Fill in the data section:
storage-method: mariadb

data:
  address: db.mchosts.com.au:3306
  database: your-database-name
  username: your-username
  password: your-password
  1. Save the file and start your server

Why mariadb and not mysql? MCHosts runs MariaDB. LuckPerms has a dedicated MariaDB driver that connects more reliably than the generic MySQL one. If your plugin only has a mysql option (not mariadb), that is fine - MariaDB accepts MySQL connections.

LuckPerms does not use a separate port field - the port goes on the end of the address line as db.mchosts.com.au:3306. Other plugins are different: many use separate host and port fields, so always follow that plugin's own documentation.

LuckPerms will create its own tables inside the database on first start.


Managing your database visually

The easiest way to browse and edit your database is through phpMyAdmin, which is built into the control panel - nothing to install. Click Open phpMyAdmin → at the top of the MySQL Databases section and log in with your Username and Password from the database card.

phpMyAdmin is useful for:

  • Browsing and editing table data
  • Exporting a backup of your database (use Export in the top menu)
  • Importing a database you exported from another host

You can also connect using any MySQL client if you prefer. Some free options:

Connect using the credentials from your database card - host db.mchosts.com.au, port 3306. MC Hosts is not affiliated with any of the external tools listed above.


Resetting a password

If you need to change a database password:

  1. Find the database card in the MySQL Databases section
  2. Click Reset Password
  3. A notification pops up with your new password - copy it immediately
  4. Update the password in your plugin's config file and restart the server

The new password is also saved in the control panel - you can view it on the database card after the page refreshes.


Deleting a database

Deleting a database permanently removes all data inside it. This cannot be undone.

  1. Find the database card and click the red trash icon
  2. Click Confirm Delete to proceed

Remove the database credentials from your plugin's config before deleting, otherwise the plugin will log connection errors on startup.


Troubleshooting

Plugin can't connect - double-check each credential field. A single wrong character (especially in the password) will cause a connection failure. Use the copy buttons rather than typing manually.

"MySQL databases are available on the Iron plan and above" - your current plan does not include this feature. Upgrade your plan to Iron or higher to unlock it.

Lost your password - click Reset Password on the database card to generate a new one, then update your plugin config.


SFTP Access | Next: Crash Alerts →

Related Guides