# Install MariaDB

**Why should use MariaDB ?** \
A MySQL server is needed for various applications and can contain important data for example for a game server or a website. In the following we explain how to set up your own MySQL Database server on your Windows VPS or RootServer.

First, Download **MariaDB** From <https://mariadb.org/download/> and start the installation file

Enter the password for the access to your database server. (Please make sure that you use a secure password which no one else knows! )

<figure><img src="/files/6vnTuO1XIjSdQWdueFnM" alt=""><figcaption></figcaption></figure>

Afterwards you click on **Next** until you reach the end of the installation, there you then have to click on **Install**:

<br>

<figure><img src="/files/nsT9BvxqipsZQVqa2jpj" alt=""><figcaption></figcaption></figure>

Your database server is now **online** and **ready** to use !

<br>

&#x20;

{% hint style="info" %}

### Open MySQL Ports For External Connection[​](https://zap-hosting.com/guides/docs/vserver-windows-installmysql#open-the-mysql-ports-for-an-external-connection) <a href="#open-the-mysql-ports-for-an-external-connection" id="open-the-mysql-ports-for-an-external-connection"></a>

\
If you have enabled "Enable access from remote machins for root user" during installation, you must also specify the MySQL port **3306** in the Windows-Firewall. To do so, open it and create a new rule there. You can find the guide in how to forward ports in the firewall here: [Open Ports (Port Forwarding)](/windows-server/open-ports-port-forwarding.md)
{% endhint %}


---

# 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://docs.snghosting.com/windows-server/install-mariadb.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.
