MySQL Won't Connect

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

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"
}

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:

Last updated