Using your AndroHost database with plugins like LuckPerms
Plugins like LuckPerms, EssentialsX, CoreProtect, and most mid-to-large server management plugins want their own MySQL database. Storing data in real tables (instead of flat files) makes everything faster, lets you back up just the plugin data, and lets you share data across multiple servers.
Every AndroHost paid plan includes one or more database slots. This guide walks through the entire flow.
How many databases do I get?
The number of database slots scales with your plan:
| Plan | Database slots |
|---|---|
| 4 GB | 1 |
| 6 GB | 1 |
| 8 GB | 2 |
| 12 GB | 2 |
| 16 GB | 3 |
| 24 GB | 4 |
| 32 GB | 5 |
If you need more than your plan includes, message support . we will work out a plan upgrade or an add-on slot.
Step 1: Create the database
- Sign in at panel.androhost.com.
- Click your server.
- Open the Databases tab in the left sidebar.
- Click New Database, give it any name (we usually suggest the plugin name, like
luckperms), and pick "Connections from: %" (allow connections from anywhere . required since the plugin runs inside our infrastructure and our internal network handles the actual restriction). - Click Create Database.
You will see a card with five values:
- Endpoint (hostname:port)
- Connections from
- Database (the actual database name, usually prefixed with
s<server-id>_) - Username
- Password (click the eye icon to reveal)
Keep this tab open . you will paste these into your plugin config in the next step.
Step 2: Wire the plugin
Every plugin's config is slightly different. Here are the two most common.
LuckPerms (/plugins/LuckPerms/config.yml)
storage-method: mysql
data:
address: <Endpoint from panel>
database: <Database from panel>
username: <Username from panel>
password: <Password from panel>
pool-settings:
maximum-pool-size: 10
minimum-idle: 10
maximum-lifetime: 1800000
connection-timeout: 5000
After saving, restart your server from the panel. LuckPerms will create its tables on first boot . you do not need to do anything in the database itself.
EssentialsX (/plugins/Essentials/config.yml)
mysql:
enabled: true
host: <Endpoint from panel>
port: 3306
database: <Database from panel>
username: <Username from panel>
password: <Password from panel>
Same pattern: paste the panel values, save, restart. EssentialsX builds its schema automatically.
Other plugins
If your plugin asks for a "JDBC URL" instead of separate fields, it looks like:
jdbc:mysql://<Endpoint>/<Database>?useSSL=false&autoReconnect=true
…and the username/password go in their own fields.
Step 3: Confirm it is working
After your server boots back up, check the server console (panel Console tab):
- LuckPerms: look for
Loaded storage MySQLor similar. - EssentialsX: look for
MySQL backend enabled.
If you see errors about "connection refused" or "access denied," 99% of the time it is a typo in one of the values . re-copy them from the panel.
Frequently asked questions
Can I connect to my database with HeidiSQL / DBeaver from my laptop? Not directly. The database lives on AndroHost's internal network and is intentionally not exposed to the public internet . this protects every customer from credential-stuffing attacks. If you need a desktop-style admin tool, message support and we will help you set up a tunneled connection through your server's SFTP credentials.
Can I share one database across multiple servers? Yes. Each database is a real MariaDB schema and any of your servers with the credentials can connect to it. This is useful for things like a shared LuckPerms permission set across a network of servers, or shared EssentialsX user data.
What happens to my database if I cancel or my server gets deleted?
The database is deleted along with the server. We strongly recommend exporting an SQL dump first via your plugin's built-in export or by asking support for a one-time mysqldump. We can also pull it from our nightly backup if it has been less than 7 days.
Is the database backed up? Yes. The entire MariaDB instance is snapshotted nightly. Snapshots are kept on-site for 7 days and (soon) replicated off-site to our Hoboken DR location for 30-day retention. You can also schedule plugin-level backups inside your server's panel Schedules tab.
What MariaDB version is running? MariaDB 10.11 (the long-term-support release). Fully compatible with anything written against MySQL 5.7+ / MariaDB 10.x.
TL;DR
- Databases tab → New Database.
- Paste the five values into your plugin's config.
- Restart the server. Done.
If anything is unclear, hop into the Discord community or open a ticket from the status page.
Hosting your game server with AndroHost means we handle most of what's in this post for you automatically: tier sizing, SRV records, off-site backups, DDoS protection.
Keep reading
TPS dropped overnight and nothing changed, where to look first
You log in. The server is up. TPS is 12 where it was 20 yesterday. "Nothing changed." Players are starting to complain.
Player can't join but everyone else can, a checklist
The server is up. 5 players are online and playing. But one player keeps getting some error and can't join. This is one of the most-puzzling support scenarios. The cause is on the player's side, the server's whitelist, or some interactio...
"Server closed" and "Internal Exception" errors explained
These are the most-googled and least-explained Minecraft error messages. They show up at different layers and mean different things. This article unpacks each.