Many Minecraft plugins can use MySQL for shared or persistent data. LuckPerms, Plan, CoreProtect, Dynmap, voting plugins, economy plugins, and network-wide setups are common examples.

Create a plugin database

  1. Open your Minecraft server in the Ptero control panel, then open Databases.
  2. Click Create Database.

    Databases page for a Minecraft server on Ptero

  3. Use a name that tells you which plugin it belongs to, such as luckperms, coreprotect, or plan.
  4. For most Minecraft plugins, leave Connections From empty. The panel will show this as %. If you need to restrict database access, use the IP addresses, hostnames, or wildcard patterns that should be allowed.
  5. Click Create Database.

    Create database form for a Minecraft server

Use it in your plugin config

Click the eye icon next to the database to view the endpoint, username, and password.

Minecraft plugins often ask for these values as separate config options. The endpoint is written as host:port, so anglo.logicserver.co.uk:3306 would be split into host anglo.logicserver.co.uk and port 3306.

If you rotate the database password from this screen, update the plugin config before starting the server again. A plugin using the old password will usually show database connection errors in Console.

Minecraft database connection details on Ptero

After editing the plugin config, restart your Minecraft server and check Console for any database connection errors.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Colour Codes for Minecraft Multiplayer and Vanilla

This article lists all of the codes you can use with many plugins in Minecraft using Spigot or...

What is the difference between Fabric, Quilt and Forge in Minecraft Modding

Exploring the Distinctions Between Fabric and Forge When diving into the exciting world of...

What is a Grindstone and how is it used?

In this guide, we will teach you what the Grindstone in Minecraft does, and how to use it...

How to Convert Java and Bedrock Edition Worlds

In this guide, we’ll be teaching you how to convert your world from a Java Edition world to a...

Minecraft's New Version Numbers

Minecraft has changed how its version numbers work from 2026 onwards. Instead of carrying on with...