---
title: "Create and use a MySQL database on your server | Lilypad"
description: "Create a MySQL database for your server and connect plugins like LuckPerms and CoreProtect to it"
url: https://lilypad.gg/help/create-and-use-a-mysql-database-on-your-server
updated: 2025-07-10
---

# Create and use a MySQL database on your server

Databases can be great to use when storing player data for a Minecraft network with multiple servers, as data can be synchronized across multiple servers in a network. We’ve made it simple to create MySQL databases for your server, and below is the easiest way to do so:

1. Head to our game panel at [panel.lilypad.gg](https://panel.lilypad.gg/) and select your server, then press **Databases** in the sidebar, followed by the **Create Database** button.

2. Pick a descriptive name for your database – most people opt for the name of the plugin which they’re creating a database for, e.g. `luckperms` or `coreprotect`. You can leave the **Connections From** box blank, then press **Create Database**.

3. You can now click on the eye icon next to the database to view its credentials that you’ll need to configure the plugin. Open your server’s **Files** page in a new tab, and find the plugin config which you’d like to edit to contain the database information.

4. Some plugin configs may require you to set a storage _type_ – if the option of “MariaDB” is available, like on LuckPerms, set it to that (MariaDB, which we run, is a more feature-filled fork of the standard MySQL server, but it’s still compatible with traditional MySQL syntax). Otherwise, “MySQL” or simply “SQL” are usually acceptable options.

5. Set the database address to `172.18.0.1` (an internal IP so your server can connect directly to the database), the username and password to the ones given to you earlier, and the database name to what was generated (usually in the format of `s123_luckperms` where `luckperms` is the name you entered earlier).

**Fun fact!** The first and second buttons here can be used to copy pre-filled database configs for LuckPerms and CoreProtect respectively, which can be pasted into their config files, saving you some time:

Tip

Wanting to modify/update data in your database externally? You can use the [HeidiSQL](https://www.heidisql.com/) or [MySQL Workbench](https://www.mysql.com/products/workbench/) software to connect from your computer, using the Address specified in the panel.

Need a Minecraft server?

Lilypad's [Minecraft server hosting](https://lilypad.gg/) runs the fastest Ryzen hardware, with a 72 hour money-back guarantee

[See plans](https://lilypad.gg/pricing)

[Previous](https://lilypad.gg/help/what-mods-do-you-pre-install-on-my-fabric-server): What mods do you pre-install on my Fabric server?

[Next](https://lilypad.gg/help/which-minecraft-proxy-software-is-the-best): Which Minecraft proxy software is the best?

## More Minecraft guides

- [Getting started with your Velocity proxy](https://lilypad.gg/help/getting-started-with-your-velocity-proxy)
- [Connect your Minehut external server to Lilypad](https://lilypad.gg/help/connect-your-minehut-external-server-to-lilypad)
- [Getting started with your Minecraft server](https://lilypad.gg/help/getting-started-with-your-minecraft-server)
- [Which Minecraft server software is right for me?](https://lilypad.gg/help/which-minecraft-server-software-is-right-for-me)
- [Install a modpack on your Minecraft server](https://lilypad.gg/help/install-a-modpack-on-your-minecraft-server)
- [Upload mods/plugins to your Minecraft server](https://lilypad.gg/help/upload-modsplugins-to-your-minecraft-server)

[All Minecraft guides](https://lilypad.gg/help/minecraft)

## Still stuck?

Just get in touch! We're happy to help with any issues

[Discord](https://lilypad.gg/discord): Open a support ticket or ask the community

[Contact form](https://lilypad.gg/help#still-stuck): Send us a message and we'll reply by email

Something not working? [Check our status page](https://lilypadstatus.com/) to see if it's on our end
