MySQL Module Installation
Impact edited this page Jan 11, 2019
·
8 revisions
The Mysql module stores reports in tables on a MySQL server. This open up many ways to use the report data from external sources like the web scripts. For example, the windows client uses the web scripts to retrieve calls.
- Put the
calladmin_mysql.smx
file into your.../addons/sourcemod/plugins
directory - Open
.../addons/sourcemod/configs/databases.cfg
and add a new entry with the keyCallAdmin
(You can change this later on) - Load the plugin or change the map, the plugin will create a file named
plugin.calladmin_mysql.cfg
in your.../cfg/sourcemod
folder - Edit the config to your purposes (see the Server keys article for how to set up server keys)
- Reload the module if you changed the table name.
- Setup the Webscript-Installation
- You're done
Here's an example of how the entry in the databases.cfg
should look like
"CallAdmin"
{
"driver" "mysql"
"host" "yourhost.com"
"database" "CallAdmin"
"user" "YourUser"
"pass" "YourPassword"
}
The Name is case sensitive. If the CallAdmin
entry is missing the default
entry is used.