-
Notifications
You must be signed in to change notification settings - Fork 23
Configure logging to MySQL
By default, the addon stores the damage logs for previous rounds in the built-in SQLite table that comes with every Garry's Mod server.
You can choose to store this information in a MySQL table instead, in order to access the logs from outside of the server (E.g. from a website).
In order to talk to a MySQL database, this addon requires the MySQLOO module.
Follow the install instructions to add it to your server.
The MySQL connection information is set via a lua configuration file: lua/damagelogs/config/mysqloo.lua
The current version of this file can be found here - tttdamagelogs/lua/damagelogs/config/mysqloo.lua
Once you have set up your MySQL connection, enable logging to MySQL via the addon's configuration file - lua/damagelogs/config/config.lua
.
Find the following line:
Damagelog.Use_MySQL = false
And change this to:
Damagelog.Use_MySQL = true