> For the complete documentation index, see [llms.txt](https://agon.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agon.rlib.io/setup/troubleshooting/mysql-wont-connect.md).

# MySQL Won't Connect

Ensure you have installed the MySQLOO module in the proper location.

* Download the current version of MySQLOO from <https://github.com/FredyH/MySQLOO/releases>
* You must select the correct version depending on what operating system your server is running.

<table><thead><tr><th width="291">File</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://github.com/FredyH/MySQLOO/releases/download/9.7.6/gmsv_mysqloo_linux.dll">gmsv_mysqloo_linux.dll</a></td><td>Linux 32-bit operating system</td></tr><tr><td><a href="https://github.com/FredyH/MySQLOO/releases/download/9.7.6/gmsv_mysqloo_linux64.dll">gmsv_mysqloo_linux64.dll</a></td><td>Linux 64-bit operating system</td></tr><tr><td><a href="https://github.com/FredyH/MySQLOO/releases/download/9.7.6/gmsv_mysqloo_win32.dll">gmsv_mysqloo_win32.dll</a></td><td>Windows 32-bit operating system</td></tr><tr><td><a href="https://github.com/FredyH/MySQLOO/releases/download/9.7.6/gmsv_mysqloo_win64.dll">gmsv_mysqloo_win64.dll</a></td><td>Windows 64-bit operating system</td></tr></tbody></table>

* Once you have downloaded the correct .DLL, upload it to your server in the following folder:

> &#x20;             <mark style="color:yellow;">**`garrysmod/lua/bin/`**</mark>

{% hint style="info" %}
If the bin folder does not exist on your server, create it and then upload the .DLL
{% endhint %}

* After uploading the .DLL, open your Agon database configuration file located in:

> &#x20;             <mark style="color:yellow;">**`addons/agon/agon.rlib`**</mark>

* Ensure you've switched the mode over to MySQL by editing the following line of code in the database configuration file:

```json
"general"
{
    "id"            1
    "mode"          "mysqloo"
}
```

* Finally, confirm you've entered the correct credentials in the Agon database config file:

```json
"mysql"
{
    "host"          "127.0.0.1"
    "port"          "3306"
    "user"          "database_user_here"
    "pass"          "database_pass_here"
    "name"          "database_name_here"
}
```

{% hint style="warning" %}
Make sure you've provided the correct MySQL database information in the settings above. Confirm the actual IP address that your MySQL server uses. If you are unsure, reach out to your hosting company via a support ticket.
{% endhint %}

After all the instructions are followed above, restart your Garry's Mod server. In the console, you should see an output similar to the following:

<figure><img src="https://988034806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fubx5GaOKM5YKmbFOqwhe%2Fuploads%2FwpBORNfKVlVtICvz7pSe%2Ftroubleshooting_mysql.png?alt=media&amp;token=69db19b3-b3a9-4a8c-b5be-9edd125be8fe" alt=""><figcaption></figcaption></figure>
