Many plugins and mods store permissions, player data or statistics in a database. For that you add the free "MariaDB" extra to your game server. It runs as a separate service with its own 512 MB RAM and 2 GB storage, in addition to your server. The data stays when you reinstall the game server. The guide Book Extras: IP, Backups and Bots covers the other extras, what they cost and how to remove them again.

Activate MariaDB

  1. Open your game server in the panel and, in the "Manage" menu under "Plan & server", choose "Extras".
  2. Find the "MariaDB" card and click "Activate for free".
  3. Wait until the card shows it as active. Setup usually takes one or two minutes.

If the card shows an error, click the retry button on it.

Access details

Click "Settings" on the MariaDB card. It lists everything a plugin needs to connect:

  • Host: address and port of the database, for example for the host setting in a plugin's config file
  • Database: the name of the default database
  • Username and password: the login for your plugins
  • Root password: the administrator access to the database

"Show" reveals a password, and "Copy" copies any value. Enter host, database, username and password in the plugin, then restart your game server.

Create and manage databases

"Manage databases" opens the list of your databases. It shows the size and table count of each database, and above that the MariaDB version and the connections in use.

  • New database: enter a name and choose "Create". Letters, digits and underscore are allowed, up to 48 characters. The user from the access details automatically gets full access to it.
  • Copy an address: "mysql://" copies the connection address, "jdbc" copies it in the JDBC format that many Java plugins expect.
  • Delete a database: possible for all except the default database. All data in it is gone afterwards.

The heading of the list shows how many databases you can create, for example "Databases (1 of 10)".

Change the password

"Generate new password" sets a new password for the database user. Root has its own button, "Generate new root password". Enter the new password in every plugin afterwards and restart the game server, otherwise the plugins lose their connection.

Browse tables and back up

The free "phpMyAdmin" extra lets you browse, import and export tables in your browser. Its card sits in the "Extras" area in the "Manage databases" group. You can activate it once MariaDB is running. "Open in phpMyAdmin" then opens your database.

Your game server's backups do not include the database, because MariaDB runs as a separate service. Export your database with phpMyAdmin before bigger changes.

If something goes wrong

The plugin reports "Access denied": check username and password. After generating a new password the old one no longer works.

The plugin cannot reach the database: check that you copied the full address and port from "Host", and that the MariaDB card shows it as running. "Logs" on the card shows the database's messages.

Deleting the extra with the MariaDB delete button removes every database in it. Export them first.