Agon
v1.x.x
v1.x.x
  • Introduction
  • Changelog
    • 🟪v1.5.0.0
  • FAQ
    • 🟥Addon Won't Show
    • 🟥Incompatible Addons
    • 🟥Configuring Script
    • 🟥Modified Script
    • 🟥Refunds
    • 🟥Script Errors
    • 🟥Updates
  • ❱ Setup
    • 🟥Install
    • 🟥Database
    • 🟥Workshop
    • 🟥Troubleshooting
      • SQLite Storage Location
      • MySQL SRCDS Error 126
      • MySQL Timeouts
      • MySQL Won't Connect
  • ❱ Configuration
    • 🟥Settings
  • ❱ Development
    • 🟥Hooks
Powered by GitBook
On this page
  1. ❱ Setup
  2. Troubleshooting

MySQL Won't Connect

PreviousMySQL TimeoutsNextSettings

Last updated 2 years ago

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

  • Download the current version of MySQLOO from

  • You must select the correct version depending on what operating system your server is running.

File
Description

Linux 32-bit operating system

Linux 64-bit operating system

Windows 32-bit operating system

Windows 64-bit operating system

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

garrysmod/lua/bin/

If the bin folder does not exist on your server, create it and then upload the .DLL

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

addons/agon/agon.rlib

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

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

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

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

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.

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:

🟥
https://github.com/FredyH/MySQLOO/releases
gmsv_mysqloo_linux.dll
gmsv_mysqloo_linux64.dll
gmsv_mysqloo_win32.dll
gmsv_mysqloo_win64.dll