Every plugin that remembers anything between restarts has to store that data somewhere. Permissions, claim maps, economy balances, block edits, playtime, homes, warps, vote records, and punishments all live in a database. For most Minecraft server owners the choice comes down to two options: SQLite, the tiny embedded database that ships with almost every plugin, or MySQL/MariaDB, the networked server that powers large communities. Pick the wrong one and you either fight constant corruption warnings on a busy server or you pay for a database host you did not actually need.
This guide exists to help you make that decision with confidence rather than guesswork. It is written for server owners, administrators, plugin developers, and staff who want to know what happens under the hood when LuckPerms, CoreProtect, EssentialsX, and economy or claims plugins read and write data. We tested both engines across a range of server sizes and measured write throughput under plugin load. Everything here is practical: you will finish with a clear recommendation for your server and a migration path if you need to switch.
By the end you will understand how SQLite and MySQL differ in concurrency, how that difference shows up as lag and data loss in the real world, and exactly when the extra operational cost of MySQL and MariaDB is worth paying. If you run a small survival world for friends, one answer is right. If you run a proxy network with multiple backends, the other is almost certainly correct.
What SQLite and MySQL Actually Are
Both are relational databases that store tables of rows and columns and answer SQL queries. The difference is architectural, and that architecture drives every practical decision you will make.
SQLite: an embedded, serverless library
SQLite is not a server. It is a C library that plugin developers link into their jar. There is no process to start, no port to open, and no credentials to configure. The entire database is a single file on disk, usually named something like permissions.db or coreprotect.db, sitting in your plugin folder. When LuckPerms needs to check a permission node, it opens the file, reads the row, and closes up. That simplicity is why nearly every plugin defaults to SQLite. The official SQLite documentation describes it as the right choice when data is accessed by a single application with modest concurrency needs.
MySQL and MariaDB: a separate database server
MySQL and MariaDB are true database servers. They run as their own process, listen on a network port (default 3306), and accept connections from one or many clients at once. Plugins connect over the network using a JDBC driver, so the database can live on the same machine, on a second box, or in a managed cloud service. MariaDB is a community fork of MySQL and, for Minecraft workloads, the two are essentially interchangeable. The MariaDB documentation covers the small command differences.
| Aspect | SQLite | MySQL / MariaDB |
|---|---|---|
| Architecture | Embedded library inside the plugin | Standalone server process |
| Setup effort | None, a file appears automatically | Install, create DB, user, config string |
| Concurrent writers | One at a time (file lock) | Many at once |
| Network access | No | Yes, multiple servers can share |
| Best for | Single server, small to medium load | Networks, high write load, clusters |
| Backup | Copy one file (safely) | SQL dump or snapshot |
| Failure surface | File corruption, disk issues | Server config, network, credentials |
How plugins actually use the database
It helps to know which plugins are chatty and which are quiet, because write volume is what pushes you from SQLite to MySQL.
- LuckPerms, permissions and groups: read-heavy at login, moderate writes when staff edit groups.
- CoreProtect, block logging and rollbacks: extremely write-heavy, one row per block change.
- EssentialsX and economy plugins: frequent small reads and writes for balances and kits.
- Claims and protection plugins: moderate reads on interaction, writes on claim creation.
- Stats, playtime, and vote plugins: steady background writes, often on a timer.
SQLite for Minecraft Plugins: Zero Config, Single File
SQLite earns its default status because it removes an entire category of problems. There is nothing to install and nothing to break during setup, which means a beginner can start a server, drop in a plugin jar, and have working storage in seconds. For a large share of servers that is genuinely the correct trade.
Why SQLite is often enough
- Zero configuration: no credentials, ports, or external service to keep alive.
- Portable: back up by copying a file; move the server by moving the folder.
- Fast reads: for small tables that fit in the OS page cache, reads are essentially instant.
- No network latency: queries never cross a socket, so simple lookups are microsecond-fast.
- Enough for most single-server, small-to-medium communities.
Where SQLite breaks down
The moment two writes need to land at the same instant, SQLite serializes them behind a file lock. Under light load you never notice. Under heavy load you get the classic symptoms: “database is locked” errors in the console, rising tick times, and, in the worst case, corruption if the process is killed mid-write or the disk fails. The SQLite documentation is explicit that it is not designed for high-concurrency write access over a network filesystem.
CoreProtect is the clearest example. On a busy survival or creative server, CoreProtect can write anywhere from hundreds to thousands of block-change rows per minute. That is exactly the pattern SQLite handles worst. Enabling write-ahead logging (WAL) mode helps a great deal by letting readers and one writer coexist, and most modern plugins turn it on, but it does not turn SQLite into a multi-writer engine.
There is also the multi-server problem. SQLite lives on one disk, so it cannot be shared. If you run a lobby plus survival plus minigames behind a proxy, each backend would need its own separate permissions file, and syncing them by hand is a recipe for permission drift and duplication bugs.
MySQL and MariaDB for Minecraft Plugins: Concurrency and Scale
MySQL and MariaDB solve the two things SQLite cannot: concurrent writes and shared access across machines. That is the entire reason they exist in the Minecraft world, and it is why every serious network runs one. Here is what matters for your server.
What you gain
- True concurrency: many plugins and players read and write at once without lock contention.
- Network access: point every server in a proxy network at one database for one source of truth.
- Higher write ceilings: CoreProtect and large economies stay responsive under heavy logging.
- Better tooling: live backups with mysqldump without stopping the server.
- Connection pooling: libraries like HikariCP keep connections warm so plugins stay fast.
- Room to grow: the same database scales to hundreds of players and dozens of plugins.
What it costs you
- Operational overhead: you install and maintain a database server, or pay a host for one.
- Configuration risk: a wrong host, port, username, or database name is the top plugin setup failure.
- Security surface: an open 3306 port is a target if you skip firewalls and strong passwords.
- A new failure mode: if the database goes down, every plugin that depends on it stops working.
For a single survival server with twenty friends, that overhead is hard to justify. For a network with a lobby, two survival worlds, and a practice server, MySQL or MariaDB is not optional, it is the foundation. If you already run MariaDB for permissions and logging, our guide on [Database Optimization: Setting Up MariaDB for LuckPerms and CoreProtect] walks through the exact configuration.
Decision Framework: Which Database Fits Your Server?
You do not need to be a database administrator to choose well. Answer three questions: how many players are online at peak, how write-heavy are your plugins, and do you run more than one server tied together. The table below turns those answers into a recommendation.
| Server profile | Recommended | Why |
|---|---|---|
| Vanilla-ish SMP, under 15 peak players | SQLite | Write volume is low; zero config wins. |
| Small modded or plugin server, 15 to 40 players | SQLite (WAL on), consider MySQL | Fine until CoreProtect or economy writes spike. |
| Busy plugin server, 40 to 100+ players | MySQL / MariaDB | Concurrent writes and reliable backups matter. |
| Proxy network, 2+ backend servers | MySQL / MariaDB | Only a shared server gives one source of truth. |
| Creative/plots with heavy block logging | MySQL / MariaDB | CoreProtect write volume overwhelms SQLite. |
| Multiple servers + economy or claims | MySQL / MariaDB | Balances and claims must not diverge per server. |
When SQLite is enough: your checklist
SQLite is the right call if you can honestly tick every box below:
- You run a single Minecraft server with no proxy network.
- Peak concurrent players stay comfortably under about 30.
- You do not run heavy block-logging plugins like CoreProtect at volume.
- Your economy and claims plugins are lightweight or unused.
- You back up the plugin folder regularly and can tolerate a minute of downtime for that.
- You would rather invest time in gameplay than in database administration.
If even one of those fails, especially the cross-server point or high write volume, plan to move to MySQL or MariaDB. It is far cheaper to migrate on your schedule than to recover corrupted data under pressure.
Migrating From SQLite to MySQL Without Losing Data
Migration sounds scary but it is a well-trodden path, and most plugins build in a conversion command. Do it during low traffic with a fresh backup, and you will rarely lose anything.
Step 1: Back up everything first
Stop the server, then copy the entire plugin folder aside. This single file is your rollback plan, and if you keep it you cannot truly ruin anything. If you want an automated safety net, see [How to Set Up Automated Minecraft Server Backups on Linux].
Step 2: Create the MySQL database and user
On your database host, create a database and a dedicated user with a strong password. Do not reuse your root account for plugins.
CREATE DATABASE minecraft CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'mcplugin'@'%' IDENTIFIED BY 'Use-A-Long-Random-Password';
GRANT ALL PRIVILEGES ON minecraft.* TO 'mcplugin'@'%';
FLUSH PRIVILEGES;Step 3: Point the plugin at MySQL
Open the plugin config and switch the storage type, then fill in host, port, database, user, and password. A typical LuckPerms mysql section looks like this:
storage-method: MySQL
data:
address: 127.0.0.1:3306
database: minecraft
username: mcplugin
password: Use-A-Long-Random-Password
table-prefix: luckperms_Step 4: Convert existing data
Many plugins will copy your SQLite data into MySQL automatically the first time they start with the new config. Others, like CoreProtect, provide an explicit command such as /co migrate or an import flag. Check your plugin wiki. If it does not auto-convert, export the SQLite tables to a .sql file with a tool like DB Browser for SQLite, then import that file into MySQL before starting the server.
Step 5: Test before you open the doors
- Start the server and watch the console for connection errors before any player joins.
- Run /lp info or the plugin equivalent and confirm the storage backend says MySQL.
- Trigger the features that use the database: set a home, change a group, break a block.
- Restart once and confirm the data survived, proving it is not still writing locally.
- Only then remove the old SQLite file, and keep your offline backup for a week.
Permissions have their own migration quirks, especially when groups and tracks move between backends. If something looks off, [LuckPerms Guide: Advanced Permissions for Minecraft Servers] covers inheritance and group setup in detail.
Backup and Reliability for Each Database
Data loss is the outcome nobody plans for and everybody fears. The good news is that both engines have mature, boring backup methods you can schedule and forget.
- SQLite: stop the server, or use the .backup command, then copy the file. Never copy a live database mid-write.
- SQLite: keep the .db and any -wal and -shm files together; they must match.
- MySQL/MariaDB: mysqldump –single-transaction produces a consistent snapshot without locking InnoDB tables.
- MySQL/MariaDB: schedule dumps to a second disk or remote host, and test restoring at least once.
- Both: store backups off the same machine, so one disk failure cannot take both.
Reliability habits matter as much as the engine. For SQLite, disk health is everything, since a failing drive is the most common source of corruption. For MySQL, the failure modes are usually configuration and connectivity, so monitor that the database process stays up and that disks have room for the write-ahead logs.
Common Mistakes and Expert Tips
We see the same handful of errors repeat across servers large and small. Avoiding them costs almost nothing and prevents the most painful database incidents.
- Copying a live SQLite file while the server writes to it. The backup can be silently corrupt. Stop the server or use the official backup command.
- Running CoreProtect on SQLite on a busy server. This is the single most common cause of lag spikes and lock errors we see.
- Using the MySQL root account for plugins. Create a dedicated, low-privilege user per database.
- Leaving port 3306 open to the internet. Bind to localhost or a private network and use a firewall.
- Mixing server versions that expect different schema versions against one database. Update plugins across the whole network together.
- Forgetting the table prefix. Two networks sharing a database without distinct prefixes will overwrite each other.
- Never testing a restore. A backup you have not restored is a hope, not a plan.
Expert tip: for economy and claim plugins that run across a network, stronger guarantees matter more than raw speed. If you store balances without proper transactions, a crash mid-transfer can duplicate or vaporize money, the same class of bug we cover in [Preventing Item Duplication Exploits on Paper Servers]. MySQL transactions are the right tool for that job.
Expert tip: tune for the workload, not for benchmarks. A Minecraft database is read-heavy for permissions and write-heavy for logging. Raising innodb_buffer_pool_size to roughly half your available RAM and using utf8mb4 charset with a unicode collation are two changes that pay off immediately. Keep connection pools modest, since many plugins each open their own, and check the Paper documentation and your plugin wikis for recommended connection settings.
Frequently Asked Questions
For a single server with light load, SQLite is often faster for simple reads because there is no network hop and no server overhead. MySQL wins decisively once you have concurrent writes, a large player count, or multiple servers sharing data. Speed is not the deciding factor; concurrency and sharing are.
No. SQLite is a local file, so each server would have its own copy and they would drift apart. For any proxy network or multi-server setup you need a networked database such as MySQL or MariaDB so every server reads and writes the same data.
Either works. MariaDB is a drop-in fork of MySQL and is what most managed Minecraft hosts run. For plugin storage the two are interchangeable; pick whichever your host or hosting panel supports best, and follow the MariaDB documentation if you self-host.
Enable WAL mode and reduce concurrent writes, but understand that these are band-aids. Persistent lock errors mean your write volume has outgrown SQLite. The real fix is to migrate that plugin to MySQL or MariaDB.
The Bottom Line: Match the Database to Your Server
SQLite and MySQL are not competing to be “better.” They are built for different jobs. SQLite is the ideal default for a single Minecraft server with modest load and simple plugins, and it asks nothing of you beyond a folder to live in. MySQL and MariaDB are the right choice the moment you add cross-server play, heavy block logging, or enough concurrent writers that a file lock becomes a bottleneck.
If you are small, stay with SQLite and turn on WAL. If you are growing, running a proxy network, or logging blocks at volume, move to MySQL or MariaDB before problems force your hand. The migration is a weekend task, not a crisis, and your players will notice only the absence of lag spikes.
Start by backing up your current database, then check which plugins write the most. If you decide to upgrade, our walkthrough on [Database Optimization: Setting Up MariaDB for LuckPerms and CoreProtect] gets you from zero to a tuned, pooled database.









