Back to Docs/Game Servers

How to Migrate a FiveM Server with txAdmin

Move a FiveM server and its txAdmin setup to GaleniusNodes: copy server.cfg and resources, export and import the MySQL database, set your Cfx.re key and keep a rollback.

GaleniusNodes TeamPublished 11 min readIntermediate
fivemtxadminmigrationdatabaseoxmysqlbackup

Quick answer

Stop the old server, then move four things separately: the server data folder (server.cfg and resources), a SQL dump of the database, your own Cfx.re license key, and optionally the txAdmin txData folder. On GaleniusNodes, upload the files over SFTP, create a database in the panel and import the dump into it, point mysql_connection_string at the new credentials, and set up txAdmin with your existing server data rather than a recipe. Panel server backups archive files, not databases, so keep your own SQL dump, and leave the old server untouched until players have tested the new one.

Before you start

  • File access to the old server (SFTP, FTP or a file manager) and permission to export its database
  • A GaleniusNodes FiveM server and access to its game panel
  • A server license key from your own account on the Cfx.re Portal
  • An SFTP client and a MySQL-compatible client, such as the mariadb or mysql command-line tools
  • A maintenance window in which the old server can be stopped

A FiveM server is more than its files. Player data usually lives in a MySQL or MariaDB database, txAdmin keeps its own admins and settings, and the server will not start without a license key from your Cfx.re account. Move each part deliberately and keep the old server unchanged until the new one has been tested, so you always have a way back.

Do not delete, cancel or overwrite the old server until players have tested the new one. It is your fastest rollback. Stop it during the move so the database stops changing, then leave it as it is.

What you need to move

PartTypical locationHow to move itNotes
Server data folderserver.cfg, any other .cfg files it runs with exec, and resources/Download, then upload over SFTPDo not copy the old host's FXServer program files; GaleniusNodes installs the server build
DatabaseThe MySQL or MariaDB database your framework and oxmysql useSQL dump, then import into a new panel databaseNot included in panel server backups
txAdmin datatxData/Optional copy; a fresh txAdmin setup is the documented pathHolds txAdmin's logs, configs and data, including admins.json
License keyYour Cfx.re Portal accountEnter it in the panel's Startup pageUse a key from your own account
Paid and escrowed resourcesresources/ plus your Cfx.re or vendor accountRe-download from your account if neededEach needs a valid entitlement for the server that runs it

How a GaleniusNodes FiveM server is laid out

  • Server root: the panel file manager and SFTP open in the server root, /home/container. Your server.cfg and resources/ go here. The alpine/ folder holds the installed FXServer build; leave it alone.
  • txAdmin: set Enable txadmin in Startup to use it. txAdmin runs on its own port, separate from the game port. On first start the console shows the txAdmin address and a setup PIN. Its data is stored in txData/ in the server root.
  • Startup variables: fivem license takes your Cfx.re key and fivem version chooses the server build (recommended by default). The slot setting comes from your plan and cannot be raised in Startup.
  • server.cfg rewrites: each time the server starts, the panel updates the existing endpoint_add_tcp, endpoint_add_udp, sv_maxclients, sv_hostname and set sv_licenseKey lines in the root server.cfg to match your allocation, slot setting and Startup values. Keep your main config at the root as server.cfg so these values stay correct.
  • Databases: create MySQL-compatible databases from the panel's Databases page; your plan sets how many. Details shows the database name, host, username, password and a connection string.
  • Backups: Game server plans include free weekly backups. Keep your own current backup before making changes to your server. A panel server backup is an archive of the server's files, not of its databases, so keep your own SQL dump as well.

Step 1: Inventory the old server

  • Server build: the FXServer build number shown in txAdmin or at the top of the console. Use the same build or recommended on the new server, and update resources first if they need a newer build.
  • Framework and resources: ESX, QBCore, vRP or custom, with versions. Note every paid resource and where its licence comes from.
  • Database: its name, its approximate size and which resources connect to it. Most use oxmysql through mysql_connection_string; some resources have their own database settings.
  • Slots and OneSync: the current sv_maxclients value and the onesync setting in server.cfg or txAdmin.
  • Config files: every exec line in server.cfg, because each named file has to come with it.
  • Admins and bans: who has txAdmin access, and whether you need to keep txAdmin's player history, bans and warnings.

Step 2: Stop the old server and back it up

Announce a maintenance window, kick or warn players, and stop the old server. A running server keeps writing to its database, so a dump taken while players are online can miss their latest progress. Then take the old host's own backup if it offers one; that copy stays with the old host and is useful if you need to start again.

Step 3: Export the database

Export only the server's database, by name. Do not add --databases: it writes CREATE DATABASE and USE statements for the old database name, which will not match the database the panel creates for you. Triggers are included by default; --routines and --events add stored procedures, functions and scheduled events if the framework uses them. Replace the capitalised values with the old host's database details.

MariaDBshell
mariadb-dump --single-transaction --routines --events \
  -h OLD_DB_HOST -P 3306 -u OLD_DB_USER -p OLD_DB_NAME > fivem-database.sql
MySQLshell
mysqldump --single-transaction --routines --events \
  -h OLD_DB_HOST -P 3306 -u OLD_DB_USER -p OLD_DB_NAME > fivem-database.sql

--single-transaction takes a consistent copy of InnoDB tables. -p asks for the password instead of saving it in your shell history. If the old host only offers a web database tool, use its SQL export for the single database. Check that fivem-database.sql is not empty and ends with a Dump completed comment, then store a copy somewhere other than the old host.

If the dump fails with a privilege error on routines or events, your database user may not have that permission. Ask the old host for a full export, or run the dump without those options if your resources do not use stored procedures or scheduled events.

Step 4: Download the server data

Connect to the old server with SFTP or its file manager and download server.cfg, every file it runs with exec, and the complete resources/ folder, keeping the folder structure. If you want to try keeping txAdmin's admins, bans and history, also download txData/. Leave the old host's FXServer program files behind.

txAdmin documents txData as the folder for its logs, configs and data, and stores admin permissions in txData/admins.json. It does not document a procedure for moving txData between hosts, so treat copying it as optional and keep the original. The documented route is a fresh txAdmin setup, after which you add your admins again.

Step 5: Prepare the GaleniusNodes server

  1. Open the server in the game panel and stop it.
  2. In Startup, enter your server key from the Cfx.re Portal in fivem license, set Enable txadmin on, and set fivem version to your old build or recommended. Save.
  3. Open Databases and create a database. Open its Details and keep the database name, host, port, username and password private.

A license key belongs to the Cfx.re account that created it. Use a key from your own account, not the old host's. If the console reports a license problem after the move, check the key in the Cfx.re Portal before changing anything else.

Step 6: Upload files and import the database

With the new server stopped, connect over SFTP using the details on the panel's Files page and upload your server.cfg, the files it executes and resources/ into the server root, replacing the default files. Wait until every transfer has finished. If you are unfamiliar with SFTP, the SFTP connection guide uses the same panel and client steps, even though it is written for Minecraft.

Import the dump into the new database with the host, port, username and password from Details. The panel creates the database for you, so name it on the command line:

MariaDB or MySQL clientshell
mariadb -h NEW_DB_HOST -P NEW_DB_PORT -u NEW_DB_USER -p NEW_DB_NAME < fivem-database.sql
# MySQL client: mysql -h NEW_DB_HOST -P NEW_DB_PORT -u NEW_DB_USER -p NEW_DB_NAME < fivem-database.sql

If your computer cannot reach the database host, or the dump is too large to import comfortably from home, contact support with the dump size and preferred time instead of uploading the dump to a public file host.

Then point oxmysql at the new database. Use set, place it above any resource that uses the database, and start oxmysql before those resources. If the password contains characters such as @, :, / or ;, use the semicolon format instead of the URL format.

server.cfgcfg
set mysql_connection_string "mysql://NEW_DB_USER:NEW_DB_PASSWORD@NEW_DB_HOST:NEW_DB_PORT/NEW_DB_NAME"
# or: set mysql_connection_string "user=NEW_DB_USER;password=NEW_DB_PASSWORD;host=NEW_DB_HOST;port=NEW_DB_PORT;database=NEW_DB_NAME"

ensure oxmysql
# then your framework and its resources

Search your resources for any other database settings, such as a resource-specific config file, and update those too. Never share server.cfg publicly: it now contains the database password.

Step 7: Check server.cfg and set up txAdmin

  • Endpoints: keep one endpoint_add_tcp and one endpoint_add_udp line. The panel sets them to your assigned port on start; remove any extra endpoint lines that name the old host's IP address or port.
  • License key: keep the set sv_licenseKey line. The panel replaces its value with the key from Startup on every start, so you do not need to paste the key into the file.
  • Slots: the panel sets sv_maxclients from the server's slot setting, which you cannot raise in Startup. If it does not match your plan's slot cap, contact support.
  • OneSync: keep the OneSync mode your resources expect. Cfx.re requires onesync set to on or legacy for 32 or more clients, and on for more than 64; legacy is a compatibility mode Cfx.re does not recommend.

Start the server and watch the console. Open the txAdmin address it shows, enter the PIN, link your Cfx.re account and create your txAdmin password. When txAdmin asks how to set up the server, choose your existing server data instead of a recipe, select the server root (/home/container) as the server data folder and server.cfg as the configuration file. Do not run a recipe over migrated files: recipes deploy files into the target folder and can create a new database.

Step 8: Test before switching players

  • The console shows oxmysql connected and no database, missing-resource or entitlement errors. "You lack the required entitlement" means an escrowed resource is not licensed for this server's owner.
  • Characters, inventories, vehicles and money match the old server for a few test accounts.
  • Admins can sign in to txAdmin with the right permissions. Re-add admins if you did not copy txData.
  • You can join with the new address from FiveM, and the server appears as expected.
  • Watch CPU and memory in the panel while a few people play, before opening to everyone.

When the tests pass, update your connect address, website, Discord and any DNS records, then announce the move. Keep the old server stopped but intact until you are confident you will not roll back.

Roll back if something is wrong

  • Before players join the new server: stop it and start the old one. Nothing was lost, because the old server and its database were not changed.
  • To retry the import: stop the new server, recreate or delete and re-create the panel database so it is empty, then import the same dump again. Recreating a database wipes all of its data.
  • After players have played on the new server: going back to the old server loses their new progress. Export the new database first if you need to keep it, and reconcile it before importing anything back.
  • Keep: the SQL dump, a copy of the old files and the old host's backup until the new server has run normally for as long as you need.

License and slot caveats

  • Listed FiveM slots are the plan's configured slot cap, not guaranteed concurrent-player capacity. You supply the Cfx.re license key from your own Cfx account, and Cfx.re requires FiveM Element Club Argentum or above to use more than 48 slots. Scripts, streamed assets and database load set the practical limit.
  • GaleniusNodes does not provide license keys or Element Club entitlements. See the Cfx.re hosting requirements and OneSync documentation.
  • Escrowed assets only start for an owner who is entitled to them, and Cfx.re does not support transferring assets to another account. Other paid resources follow their vendor's licence terms.

This guide is based on Cfx.re, txAdmin, oxmysql, MariaDB, MySQL and Calagopus panel documentation and on the GaleniusNodes FiveM server configuration. It is not a claim of a completed GaleniusNodes migration playtest for any particular framework.

Next steps

Compare Budget FiveM and High End FiveM plans on the FiveM hosting page, or read how to choose a hosting plan. If you would rather have help, contact support with your framework, resource list, database size and preferred migration window, and confirm the scope, any cost and timing before the move.

Frequently asked questions

Do panel backups include my FiveM database?

No. A panel server backup is an archive of the server's files. Export your database separately with mariadb-dump or mysqldump before the move and keep the dump for rollback.

Can I reuse my license key on GaleniusNodes?

Use a server key from your own Cfx.re Portal account and enter it in the panel's Startup page. Do not use a key that belongs to your old host. If the console reports a license problem, check the key in the Cfx.re Portal.

Should I copy the txData folder?

It is optional. txData holds txAdmin's logs, configs and data, including admins.json, but txAdmin does not document moving it between hosts. Keep the original, and if a copy causes problems, set up txAdmin fresh and add your admins again.

Why does the import fail with an access denied error that names my old database?

The dump was probably created with --databases, so it tries to create or use the old database name. Export the single database again without --databases and import it into the database name shown in the panel.

Why did my endpoint or slot settings change after starting the server?

The panel updates the endpoint, sv_maxclients, sv_hostname and sv_licenseKey lines in the root server.cfg on every start to match your allocation, slot setting and Startup values. Keep your other settings in server.cfg as usual.

Can I have more than 48 players?

Only if your plan's slot cap allows it and your Cfx.re account has FiveM Element Club Argentum or above, which Cfx.re requires for more than 48 slots. A slot cap is not a guarantee of performance at that player count.

Can GaleniusNodes migrate the server for me?

Contact support with your framework, resource list, database size and preferred migration window. Confirm the scope, any cost and timing before scheduling the move, and keep your own backup; zero downtime is not guaranteed.

Official resources

Need help with your server?

Include your Minecraft version, server software or loader, plugin or mod URL, and the first console error.

Order attribution (optional, off by default)

When on, our order buttons tell the billing site how you found us (search engine, AI assistant, another website or direct) and which page you first landed on. Nothing else is shared: no referring address, identifiers or cookies. The choice is saved only in this browser and you can turn it off at any time. See our privacy policy.