Skip to content
Hosting · Files, backups and database

MySQL database for plugins

How to give a server a MySQL database in Millida, where to get the credentials, and what to put in the plugin config.

Updated August 16, 2026

Many plugins need a database: economy, claims, statistics, linking multiple servers. A dedicated database for each server is provisioned in one click.

Who it’s available to

A database is available on any paid plan — the same boundary as with files and SFTP. If a database was already provisioned earlier on another plan, access to it remains.

How to provision

Go to the “Database” section → “Create database”. The control panel will create the database and a separate user and show the credentials: host, port, database name, username, password.

What to specify in the plugin

A typical block in the plugin’s config.yml:

database:
  type: MySQL
  host: <host from panel>
  port: <port from panel>
  database: <database name>
  username: <login>
  password: <password>

Key names differ between plugins, but the meaning is the same. After editing the config, restart the server.

One database for the entire network

A network behind a proxy almost always needs a shared database: player accounts, ranks, and bans must apply across all worlds at once. The procedure is as follows:

  1. Create a database on one server in the network — it will be the shared one.
  2. In the “Database” section of that server, enable “Shared database for my servers”. Without it, neighboring servers get Access denied: by default, the database only allows the server it was issued to.
  3. In the configs of the other servers, specify the same username, password, and database name.
  4. Check which port the control panel shows for connections from other servers. Servers in the same network can run on different machines, while the database lives on the machine where it was created: from a neighboring machine, it is accessible via the same host but on a different port — the control panel shows it in a separate block.

If plugins on neighboring servers output Access denied for user ... @'172.18.0.1', the cause is one of two: shared access is not enabled, or port 3306 is specified instead of the port from the “Connecting from your other servers” block.

Important

  • You can’t connect to the database from outside — it is accessible only to your servers; this is protection, not a limitation.
  • With shared access, the password becomes the boundary. Enable it for your network and do not publish the credentials.
  • The password is shown in the control panel and can only be changed by recreating the database.
  • Deleting the database deletes the data. Plugins that lived in it will start from scratch.

If the plugin won’t connect

Check the console at startup: messages like Communications link failure mean the credentials didn’t match. Most often, the host and port are mixed up, or an extra space got into the password when copying.

Minecraft hostingYour server runs while you are offlineCreate server