How to setup MySQL for Fivem

New guide on how to setup MySQL for Fivem. Let’s start and see how its done!

Requirements

  • Running MySQL server.
  • Running FiveM server.

Installation

  1. The first thing you want to do is create a database.
  2.  Now in the server.cfg file add the following line, replacing the DatabaseName, the Username and the Password (change the ip of the database if needed. If you need to add something check this tool and go to the latest page):
    set mysql_connection_string "mysql://username:password@localhost/databaseName?"
    
    ...
    
    start mysql-async
  3. Now download the MySQL-Async, and after downloading it rename it into: mysql-async.
  4. Start the server and enjoy!

And this was how to setup mysql for fivem. Make sure to stay tooned for more guides.