> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.vibegames.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# FiveM error ECONNREFUSED 127.0.0.0:3306

If you got this error: ![](https://i.imgur.com/lcTe0iH.png)

Then you did not setup the mysql_connection_string right. The database IP can never be 127.0.0.1

To fix this:

1. Open your server.cfg

2. Create a database if you did not do that yet and save/remember the database details. [How to create a database](/en/article/how-to-create-a-database-et1vad/)

3. In the ++mysql_connection_string++, add te following behind this:
* **server=** add the IP of your MySQL server (You can find this under the tab ++databases++ in you control panel)
* **uid=** add the username of your mysql database
* **password=** add the password of your mysql database
* **database=** add the name of your database

The new ++mysql_connection_string++ should be something like this:
```set mysql_connection_string "server=151.80.54.190;uid=userhere;password=passwordhere;database=s1_databasename"```