# How to install HeidiSQL

### Download and Install MariaDB <a href="#download-and-install-mariadb" id="download-and-install-mariadb"></a>

<kbd>1</kbd> **Download MariaDB**

* Visit the official [MariaDB website](https://mariadb.org/download/).
* Select your operating system (Windows, Linux, macOS).
* Download the recommended stable version.

<kbd>2</kbd> **Run the Installer**

* Open the downloaded file and start the installation process.
* Accept the terms and conditions.

<kbd>3</kbd> **Configuration During Installation**

* Select Components: Ensure "MariaDB Server" and "Command Line Tools" are selected for installation.
* User Setup: Set a password for the `root` user (administrator). Save this password securely.
* Connection Port: The default port for MariaDB is `3306`. Keep this default unless another service is using the same port.

<kbd>4</kbd> **Complete the Installation**

* Follow the installer’s instructions to finish the setup.
* MariaDB will be installed as a service and will start automatically.

***

### Download and Install HeidiSQL <a href="#download-and-install-heidisql" id="download-and-install-heidisql"></a>

<kbd>1</kbd> **Download HeidiSQL**

* Visit the official [HeidiSQL website](https://www.heidisql.com/download.php).
* Download the latest version for Windows.

<kbd>2</kbd> **Run the Installer**

* Open the downloaded file and start the installation process.
* Follow the standard steps (accept terms, choose folder, etc.).

<kbd>3</kbd> **Set Up a Connection in HeidiSQL**

* Open HeidiSQL after installation.
* Click **"New"** to create a new connection.
* Fill in the fields as follows:
  * **Network Type:** MySQL (TCP/IP).
  * **Hostname/IP:** `localhost` (or your server's IP).
  * **User:** `root`.
  * **Password:** Use the password you set during the MariaDB installation.
  * **Port:** `3306` (or the port you configured for MariaDB).
* Click **"Save"** and then **"Open"** to connect.

***

### Visual guide with video <a href="#visual-guide-with-video" id="visual-guide-with-video"></a>

{% embed url="<https://www.youtube.com/watch?v=6QCx0ayBLUQ>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rarxnetwork.gitbook.io/rarxnetwork/before-start-fivem-server/how-to-install-heidisql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
