Installing OxMySQL


Step 1.
Download the oxmysql.zip here.
(Ensure you download the latest release).
Step 2.
Add ensure oxmysql to your server.cfg file.

Step 3.
To connect your database to OxMySQL you'll need to add a mysql connection string to your server.cfg file. If you're hosting the database on the same server as the FiveM server then you can add this string.


set mysql_connection_string "mysql://user:password@localhost/database?charset=utf8mb4"

If you don't have a password then you can remove that and remove the : before the password as well.

If you're using a panel then you probably have your database hosted on a different server. To connect that server you may need to specify the port, see connection string example below.

set mysql_connection_string "mysql://user:password@localhost/database?charset=utf8mb4"

Make sure your password don't have any = or : or @ in it

Comments

Popular Posts