> ## Content Index
> Fetch the complete content index at: https://knowledgebase.content.iceline.host/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Set Up A Database on Your Game Server
- URL: https://knowledgebase.content.iceline.host/how-to-setup-a-database-on-your-game-server/
- Published: 2020-06-26T20:00:05.000Z
- Updated: 2026-05-22T10:37:47.000Z
- Author: Iceline Hosting
- Tags: Uncategorized, #Import 2026-11-17 18:38

## What Is a Database?

A database is where a [game server](https://iceline-hosting.com/games?ref=knowledgebase.content.iceline.host) stores its data in an organized way, so it can be read and used later on. If the game supports it, you can use a database to store players’ data, such as the items they have, their money, and more...

### How to Create a Database for your Game Server

1. Head to the [Iceline Game Panel](https://game.iceline-hosting.com/?ref=knowledgebase.content.iceline.host)
2. Select your server and access the console.
3. In your server navigation bar, go to the “Databases” tab. (You may have to use the scroll bar to see it)

![Iceline Game Panel - Databases tab](https://knowledgebase.content.iceline.host/content/images/2026/05/image-8.png)

1. On this page, you will see a button named "Create Database"
2. Click on this button and put any name into the “Database Name”, this is just an identifier on the panel.
3. Select the database type and location. **Make sure the location is close to your server location.**
4. Choose a name for the database and a root password. **Make sure to use a strong password.**
5. Press “**Create Database**” towards the bottom.

![Iceline Hosting Game Panel - Create Database](https://knowledgebase.content.iceline.host/content/images/2026/05/image-9.png)

That's it! With this, your database has been created and can be accessed through an application like HeidiSQL. Make sure to save these credentials to a safe place.

![Iceline Game Panel - Database created](https://knowledgebase.content.iceline.host/content/images/2026/05/image-10.png)

## How to connect to the database

Now that your Database has been created, you can access it using a database manager application like **HeidiSQL**. Just follow these steps:

### Getting your database details

Before starting, **make sure you have your Database details saved**. You can find your Database IP and port on the **Network** tab of the game panel.

![Iceline Game Panel - Network tab, database IP](https://knowledgebase.content.iceline.host/content/images/2026/05/image-11.png)

If you don't have your database details saved, **you can get them through the connection string**:

1. Go to[ your game panel](https://game.iceline-hosting.com/?ref=knowledgebase.content.iceline.host).
2. Head to the **Databases** tab and click on the clipboard to copy your connection string.

![Iceline Game Panel - Database details](https://knowledgebase.content.iceline.host/content/images/2026/05/image-10.png)

1. Paste your connection string somewhere temporarily (like Notepad).
2. Locate your database username and password at the start of the string. In the example below, the bolded and cursive parts.

***root**:***123abc456**@tcp(1.2.3.4:1234)/my\_Database

1. Save these details somewhere safe.

### Connecting to the database using HeidiSQL

Now that you have your database details, all that's left is to connect to the database using HeidiSQL or any other app. If you use [HeidiSQL](https://www.heidisql.com/?ref=knowledgebase.content.iceline.host), follow these steps:

1. In your PC, open HeidiSQL.
2. Click on "New" to create a new session entry.
3. Type your Database credentials in the respective boxes:
  1. **Hostname/IP**: Should be your database IP.
  2. **User**: Should be your database username.
  3. **Password**: Should be your database password.
  4. **Port**: Should be your database port.

![HeidiSQL Database connection](https://knowledgebase.content.iceline.host/content/images/2026/05/image-12.png)

In this example, we used ****1.2.3.4** and ****1234** as the IP and port, ****root** as the username and the ****database password** previously selected.

1. Click on **Open** when you're ready to connect.

![HeidiSQL Database Test](https://knowledgebase.content.iceline.host/content/images/2026/05/image-14.png)

That's it! You can now create tables for your mods/resources to store the information. 

Keep in mind that some mods may need to be edited to use your database details; otherwise, you may run into connection issues.

## Facing Any Issues?

If you are having issues, please make sure you've selected a valid database name and that your game server supports it. Make sure you're using the right details. You can double-check that the information you selected is correct. 

If you are still having issues after this, feel free to [contact Iceline Hosting’s support](https://iceline-hosting.com/contact?ref=knowledgebase.content.iceline.host) for further assistance.

[Learn more about our Game Hosting at Iceline Hosting](https://iceline-hosting.com/games/?ref=knowledgebase.content.iceline.host).