Garry's ModGarry's ModAddons

How to setup MySQL for GAS (bLogs/bWhitelist)

Setting up GAS (bLogs, bWhitelist) to use MySQL is super easy and simple with Physgun. Using MySQL is useful for backups and storing lots and lots of data.

💽 How to setup MySQL for bLogs and bWhitelist (GModAdminSuite)

In this guide we’ll go over setting up a MySQL database to your GModAdminSuite addons, whether it be bLogs, bWhitelist this guide applies to both!

Requirements

Before connecting your database you’ll need to setup a couple of things. Such as an existing database and the gas-config addon.

Connecting the database to GModAdminSuite

GModAdminSuite basically connects various server management addons such as bLogs, bWhitelist, bAdminSits, etc.. So we’ll only need to fill in the gas-config for MySQL details!

  1. Navigate to Your Server in the Physgun Gamepanel
  2. Navigate to Management > File Manager
  3. Navigate to /garrysmod/addons/gas-config/lua/gmodadminsuite_mysql_config.lua in the File Manager Navigating to the MySQL config
  4. Fill in the Host, Username, Database Name, and Password.
  5. Ensure you have set GAS.Config.MySQL.Enabled to true
  6. Click Save File on the bottom right
  7. Restart your server and you’re done!
mysqlgas mysqlgmodadminsuite mysqlblogs mysqlbwhitelist mysql

Questions?

Join over 6000+ members in our Discord community chat with other server owners, get help, and stay up to date with the latest news.