Skip to main content

How to connect a database?

General Information

The Databases tab in the IceHost.pl panel allows you to create and manage MariaDB, MongoDB, and Redis databases for your Minecraft server. MariaDB is a compatible alternative to MySQL, offering high performance and full integration with plugins. A database is a system for storing and managing plugin data, such as ranks or player statistics (i.e., player data), enabling fast access, integration with other services, and easy synchronization between Minecraft servers.


Database Configuration

Create a database in the panel:

  1. Go to the Databases tab (located on the left side of the navigation bar).
    Baza1
  2. Click the New Database button.
    Baza2
  3. Enter the database name (e.g., LuckPerms) and click the Create Database button.
    Baza5
  4. Click the highlighted option in the image and save the generated data: host:port, username, password, and database name.
    Baza6

Plugin Configuration (e.g., LuckPerms)

TIP:

If you are using LuckPerms not for the first time and already have ranks created, run the command /lp export before proceeding with the steps below.
If you want to keep the ranks after transferring the database, after completing the steps below use the command /lp import [exported_file]

  1. In the Files tab, find the file:
    plugins/LuckPerms/config.yml
    Baza7
  2. Find the STORAGE SETTINGS section.
    In this section, you will find the following data:
    Baza3
  3. Adjust all data to match your database. If you are using a database created in the Databases tab, set storage-method to MariaDB.
  4. Then enter the database server details.
    Baza4
  5. In the database: value, enter the name of the database assigned to you.
    Baza8
  6. The final configuration should look as follows:
    Baza9
  7. After saving the file, go to the Console tab and restart the server.
    Once properly started, the LuckPerms plugin should now operate on the database.