Open your database with HeidiSQL: what goes where

Connect HeidiSQL to your server's database: which panel detail goes in which field, plus running SQL files and making a backup.

EliteStarHosting Team8 November 2026Updated 9 November 20264 min read
Ready to start? View the Game Hosting plans

With HeidiSQL you open your server's database on your own computer. You can browse and edit tables, run SQL files and make a backup. It's free and works with every database from the panel, for example for FiveM (ESX, QBCore, Qbox) or Minecraft plugins such as LuckPerms and CoreProtect.

Only download HeidiSQL from heidisql.com. There's an installer and a portable version for Windows, and also a version for Linux and macOS.

1. Your details in the panel

In the game panel, go to Databases. No database yet? Create one as in Create a MySQL database.

The database list, numbered at Name (5), Username (3) and Endpoint (1 and 2)

Click Database Details next to your database. You need four details:

  • Endpoint: db1.elitestarhosting.com:3306, the address (1) and the port (2).
  • Username (3): for example u1234_AbCd12EfGh.
  • Password (4): click it to copy it.
  • The name from the list (5), for example s1234_fivem.

Database connection details, numbered at Endpoint (1 and 2), Username (3) and Password (4)

2. What goes where?

The numbers in the screenshots belong together: what has number 1 in the panel goes in the HeidiSQL field with number 1, and so on.

  1. Open HeidiSQL. You see the Session manager.
  2. Click New at the bottom left and give the session a name, for example My FiveM server.
  3. Fill in the Settings tab as below.
  4. Click Save and then Open.
  • Network type: MariaDB or MySQL (TCP/IP).
  • Library: leave it as it is.
  • Hostname / IP (1): db1.elitestarhosting.com, without :3306.
  • User (3): your Username.
  • Password (4): your Password.
  • Port (2): 3306.
  • Databases (5): your database name, such as s1234_fivem. Not required, but then you only see your own database.

The HeidiSQL Session manager with the same numbers at Hostname / IP (1), Port (2), User (3), Password (4) and Databases (5)

Your database is now on the left. Click it to see your tables, and open a table's Data tab to see its rows. Is your server running? Stop it before you change data, or the server may overwrite your change.

3. Run an SQL file

Scripts and plugins often come with a .sql file that creates their tables.

  1. Click your database on the left.
  2. Choose File and then Run SQL file....
  3. Pick the .sql file. HeidiSQL runs it in the selected database.

Does the file contain CREATE DATABASE or USE with another name? Then you get Access denied for user ... to database, because you can only use your own database. Open the file with File and Load SQL file..., delete those lines and run the rest with F9.

4. Make a backup

A backup in the panel holds your files, not your database. So back up your database too:

  1. Right-click your database and choose Export database as SQL.
  2. Tick your tables. Under Data:, choose Insert, and under Output:, choose Single .sql file.
  3. Choose where the file goes at Filename: and click Export.

To restore it, run that file as in step 3.

Not working?

  • Access denied for user: your username or password is wrong. Copy them again. Did you fill in Connection From when you created the database? Then only that IP address may connect.
  • Can't connect to server on with 10060: no answer. Check Hostname / IP and Port. Some school and work networks block port 3306: try another network, such as your phone's hotspot.
  • Unknown server host: there's a typo in Hostname / IP, or :3306 is still behind it.

HeidiSQL keeps your password in its settings. On a shared computer, tick Prompt for credentials instead. Never share your password, not even with us. Leaked? Click Rotate Password under Database Details and put the new password in your server or plugin.