FiveM · txAdmin · Database

Complete guide: FiveM hosting + database setup

This guide walks you through the entire process from first-time FiveM server launch, logging into txAdmin, choosing a framework (ESX/QBCore), creating and connecting a MySQL database, to successfully starting your server.

Steps overview

  1. 1Add a second port via Create Allocation (Network tab) and set it as TXADMIN PORT in the Startup tab
  2. 2Start the server and find the txAdmin PIN + URL in the console
  3. 3Log into txAdmin using your Cfx.re account
  4. 4Complete the Setup Wizard (server name, deploy type, template)
  5. 5Create a database in the game panel and copy credentials
  6. 6Get a license key from portal.cfx.re
  7. 7Fill in the Recipe Deployer (key + DB credentials) and run deployment
  8. 8Verify server.cfg and set the endpoint
  9. 9Start the server and confirm database connection in the console

1Server ports – Network tab

After logging into the game panel at panel.blazehost.cz and opening your FiveM server, go to the Network tab in the left menu. By default only one port is allocated (the primary FiveM server port). For txAdmin you need a second port – add it by clicking Create Allocation.

  • FiveM serverprimary port players connect to – marked as Primary (e.g. node.blazehost.cz:25002)
  • txAdminsecond port you manually add via Create Allocation (e.g. node.blazehost.cz:25065)
Network tab – FiveM port 25002 (Primary) and txAdmin port 25065, Create Allocation button
After clicking Create Allocation a second port is added – this will be used for txAdmin
⚠️ Pozor:Remember the number of the newly allocated port (25065 in the example) – you must enter it in the Startup tab as TXADMIN PORT, otherwise txAdmin will run on the default port 40120 which is not externally accessible.

Setting TXADMIN PORT in the Startup tab

Go to the Startup tab in the left menu. Find the TXADMIN PORT field – the default value is 40120. Change it to the port number you just allocated in the Network tab (25065 in the example). The value saves automatically when you leave the field.

Startup tab – TXADMIN PORT changed from 40120 to 25065
Startup tab: change the default 40120 to the port allocated in the Network tab

2Starting the server and finding the PIN

On the server's main page in the panel, click the Start button (green arrow). The server will begin initializing and logs will appear in the Console (Terminal) tab.

Game panel console – server starting, stats on the right
Console during server startup – watch logs until txAdmin URL and PIN appear

Wait about 30–60 seconds. Once txAdmin is ready, the console will show a box containing:

  • txAdmin address (usually http://<ip>:25065/)
  • 4-digit PIN code for first registration
Console – box with txAdmin URL and PIN code 4685
The console shows the exact address and PIN – copy both
ℹ️ Info:The PIN is only valid until the first login. After successful registration it is no longer used.

3Logging into txAdmin

Open the txAdmin URL in your browser in the format http://node.blazehost.cz:TXADMIN_PORT/. A login page will appear asking for the PIN code. Enter the PIN shown in the console and click Link Account.

txAdmin login page – PIN code entry
Enter the PIN from the console and click Link Account

Linking your Cfx.re account

txAdmin will redirect you to the Cfx.re authorization page. Click Continue to confirm access.

Cfx.re – Authorize txAdmin, logged in as Vojta702
Confirm linking your Cfx.re account with txAdmin

Admin registration

On the registration page your Cfx.re account is pre-filled. Set:

  • Discord IDoptional, for Discord bot integration
  • Backup Passwordbackup password (6–128 digits) used to log in if you lose Cfx.re access

Check the license agreement and click Register.

txAdmin registration – Cfx.re account, Discord ID, backup password
Fill in the backup password and confirm registration

4Setup Wizard – initial configuration

After registration txAdmin will automatically redirect you to the Setup Wizard. The wizard has 5 steps.

Step 1 – Server Name

Enter a short server name that will appear in the txAdmin interface and Discord messages. Click Next.

Setup Wizard – Step 1: Server Name
Enter the server name and continue

Step 2 – Deployment Type

Choose the deployment method. For a new server select Popular Recipes (recommended) – this option gives you ready-made framework templates.

Setup Wizard – Deployment Type options
For a new server select Popular Recipes

Step 3 – Select Template

Choose the framework you want to build your server on:

  • ESX Legacymost popular RP framework, huge community and thousands of ready scripts
  • Qbox / QBCoremodern alternative with clean architecture and active development
  • FiveM Basic Server (CFX Default)clean server without any framework, suitable for advanced users
Select Template – ESX Legacy, Qbox, QBCore, FiveM Basic Server
Template selection – for most servers we recommend ESX Legacy or QBCore

Step 4 – Data Location

txAdmin will suggest a path where server files will be stored. We recommend using the default path and just clicking Save.

Data Location – recommended path /home/container/txData/ESXLegacy_31B450.base
Keep the default path and click Save

Step 5 – Finish

All steps are complete. Click the green Go to Recipe Deployer button to proceed to the actual deployment.

Setup Wizard Finish – Go to Recipe Deployer
Click Go to Recipe Deployer to proceed to deployment

5Creating a database in the game panel

Before running the Recipe Deployer, create a database in the game panel. Go to the Databases tab in the left menu → click New Database.

Create new database – form with database name
Create new database – enter any name in DATABASE NAME (e.g. main)

After creating, click the eye icon or details button. A modal will appear with the connection credentials:

  • Endpoint: mysql.blazehost.cz:3306
  • Username: auto-generated username
  • Password: auto-generated password
Database connection details – endpoint mysql.blazehost.cz:3306, username, password, JDBC string
Copy the endpoint, username and password – you'll enter these in the Recipe Deployer
⚠️ Pozor:Keep the credentials window open or copy the details to a notepad. You'll need them in the next step.

6License key from portal.cfx.re

To run a FiveM server you need a free Server Registration Key. Keymaster has moved to a new address – go to portal.cfx.re and log in with your Cfx.re account.

  1. Click Generate
  2. Enter a Display Name (any name, e.g. Tutorial)
  3. Click Generate and copy the generated key
portal.cfx.re – Generate Server Registration Key
Enter the server name and click Generate – copy the key into the Recipe Deployer
ℹ️ Info:The key identifies your server on Cfx.re. One key = one server. If you change IP, the key remains valid.

7Recipe Deployer – fill in and run

Step 1 – Review Recipe

The Recipe Deployer shows the YAML file of the selected template. You can review it – it contains all tasks that will be performed automatically (downloading files, DB setup…). Click Next.

Recipe Deployer Step 1 – Review Recipe YAML (ESX Legacy)
Recipe review – shows what will be installed. Click Next.

Step 2 – Input Parameters (database + license key)

This is the most important part. Fill in the panel credentials and the license key from portal.cfx.re:

  • Server Registration Keykey from portal.cfx.re
  • Database Hostmysql.blazehost.cz
  • Database Port3306
  • Database Usernameusername from the panel (Databases tab)
  • Database Passwordpassword from the panel
  • Database Namedatabase name (auto-filled)
Input Parameters – Server Registration Key, Database Host mysql.blazehost.cz, Port 3306, Username, Password, Database Name
Fill in the license key and database credentials exactly as shown in the panel
⚠️ Pozor:Always enter mysql.blazehost.cz as Database Host – not localhost or 127.0.0.1. BlazeHost uses an external MySQL server.

Step 3 – Run Recipe

Click Run Recipe. txAdmin will automatically start downloading server files, installing the framework, and importing database tables. Watch the progress on the progress bar.

Run Recipe – deployment progress at 80%, task list
Deployment in progress – wait until it reaches 100%
ℹ️ Info:Deployment takes 2–10 minutes depending on the chosen framework. Don't close or refresh the page.

8server.cfg

After the deployment completes, txAdmin will generate a basic server.cfg. Find it in the Files tab or via txAdmin → Server Files. Check and fill in these items:

server.cfg – ESX Framework header, endpoint_add_tcp and endpoint_add_udp
Auto-generated server.cfg with ESX header and endpoints

Key items in server.cfg:

cfg
# Endpointy – port musí souhlasit s primárním portem ze záložky Network
endpoint_add_tcp "0.0.0.0:25002"
endpoint_add_udp "0.0.0.0:25002"

# Název a max. počet hráčů
sv_hostname "Můj FiveM Server"
sv_maxclients 32

# Licenční klíč (Recipe Deployer ho vyplní automaticky)
sv_licenseKey "cfxk_VÁŠÍ_KLÍČ"

# Locale
sets locale "cs-CZ"
💡 Tip:The port in endpoint_add_tcp/udp must match the primary FiveM server port from the Network tab (25002 in the example). The database connection string was inserted automatically by the Recipe Deployer – don't change it.

9Starting the server and verification

In the txAdmin dashboard click the green Start Server button. After a successful start you'll see the server address:

txAdmin dashboard – Address: node.blazehost.cz:25002
Dashboard shows the server address – copy it into FiveM Direct Connect

Watch the server console. A successful launch with a working database will show these lines (look especially for oxmysql and ESX migrations):

Console – oxmysql connected, ESX migrations, cfx.re authentication
Console confirms: database connected, ESX migrations complete, server authenticated on Cfx.re
💡 Tip:Look for the line "database server connection established" in the oxmysql log – that's the confirmation the database is working correctly.

Connecting via FiveM client

  1. Open FiveM client and press F8
  2. Type: connect node.blazehost.cz:25002 (replace with address from Network tab)
  3. Alternatively use Direct Connect in the FiveM main menu

Troubleshooting common issues

❌ ER_ACCESS_DENIED_ERROR / MySQL connection failed

Cause: Wrong credentials or hostname in the database connection.

Fix:

  • Verify Database Host is mysql.blazehost.cz – not localhost or 127.0.0.1
  • Go to the Databases tab in the panel and copy the credentials again via the details button
  • Copy the password directly from the modal – don't type it manually, it may contain special characters

❌ Invalid license key / License key mismatch

Cause: The key is invalid or wasn't copied correctly.

Fix:

  • Generate a new key on portal.cfx.re
  • Copy the entire key – it starts with cfxk_ or similar prefix
  • In the Recipe Deployer or server.cfg delete the old key and paste the new one

❌ Server starts but immediately crashes

Cause: Error in a resource or wrong port in server.cfg.

Fix:

  • Find the first red error line in the txAdmin console
  • Check that the port in endpoint_add_tcp/udp matches the primary port from the Network tab
  • Temporarily disable custom resources in txAdmin → Resources to find which one causes the issue

❌ txAdmin page won't load

Cause: Server is still initializing or wrong port.

Fix:

  • Wait 30–60 seconds and refresh the page
  • Check the correct port in the Startup tab → TXADMIN PORT or the Network tab
  • Make sure the server is running in the panel (green Status icon)

Still stuck?

Our support team is happy to help – we usually respond within 15 minutes.