Hosting & infrastructure

MariaDB

Also called MySQL, database server

The open-source MySQL-compatible database most FiveM servers use to store players, characters, inventories, vehicles and logs.

MariaDB is a fork of MySQL and the database most FiveM servers run behind oxmysql. Frameworks like ESX and QBCore ship SQL files that create their tables, and almost every gameplay script adds its own.

For a small server the defaults work. As a server grows, the database is often the first part to struggle, and the symptoms show up in game as delays when opening inventories, saving characters or buying vehicles. Common fixes:

  • Indexes. Tables queried by identifier or plate need indexes on those columns. Many free scripts ship without them.
  • Buffer pool size. The InnoDB buffer pool should be large enough to keep the active data in memory. The default is small.
  • Log tables. Scripts that log every action into one table without cleanup eventually make backups slow and queries slower. Prune or archive.

Backups are not optional. A daily dump kept off the server, plus a tested restore, is the difference between a bad night and losing the community. Test the restore, because a backup that has never been restored is a guess.

Security basics: do not expose port 3306 to the internet, use a dedicated user for the FiveM server with access only to its database, and keep the password out of public repositories. A database open to the world with a weak password is one of the most common ways FiveM servers get wiped.

On Windows hosts, authentication plugin errors on connect usually mean a wrong password rather than a missing plugin.

Related terms

Trying to get your server seen?

The live leaderboard shows what the numbers look like at the top of the list, and the upvote calculator turns a target server into a campaign size. The full glossary is here.