How to Install OxMySQL on Your FiveM Server
Last updated
Last updated
To start off with, youâll want to head over to the OxMySQL GitHub page, and download the .ZIP file thatâs shown in the image below. Itâs often best to go with the most stable build shown, and not the most recent. MAKE SURE YOU HAVE A DATABASE SETUP
You will now want to head over to your â/resourcesâ directory and then extract the contents of the .ZIP file you just downloaded to this folder. To upload resources, this can either be done via the Inbox Game Panel file manager or via an FTP application such as FileZilla or WinSCP.
Once youâve uploaded the .ZIP file to your resources directory, head back to the root directory (â/containerâ) of your server, and open the âserver.cfgâ file. As shown in the image below, make sure you add the line âstart oxmysqlâ to your server.cfg. As well as adding the line to start the resource, youâll also want to add your MySQL connection string which can be located within the âDatabasesâ tab of the Inbox Game Panel under the eye symbol. OxMySQL doesnât allow the â=â symbol in database passwords, so you may have to keep regenerating yours until you get one without.
To reset your database password, simply select your database password within the game panel and press the âReset passwordâ button.
That pretty much covers the installation of OxMySQL to your FiveM server. If youâve got a successful database connection in your console from OxMySQL youâve correctly installed this resource. We hope you found this guide useful.
Getting a error in console saying [script:oxmysql] [11.1.2-MariaDB-1:11.1.2+maria~ubu2004] Database server connection failed (using password: YES)
You can fix this by simply rotating the password
Facing any issues?
If youâre still unsure about the installation of OxMySQL, or are having issues with resetting your database password â donât hesitate to reach out to our support team who are always more than happy to assist you with any queries/concerns you may have.
Havenât got a FiveM⢠server yet, or thinking about starting one? Here at Inbox Hosting, we offer premium hosting for great prices. If youâre unsure or need any help, a member of staff for sales assistance via support ticket or discord