You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dedmen Miller edited this page Apr 25, 2019
·
5 revisions
Example config file:
accounts:
maindb: #production db, don't break things here!ip: 127.0.0.1username: rootpassword: lulzdatabase: productionport: 3306#optionaltestdb: #testserverip: 127.0.0.2username: rootpassword: lulzdatabase: productionport: 3306#optionalstatements:
insertStuff: INSERT INTO table (a,b,c) VALUES (?,?,?)deleteStuff: DELETE FROM table WHERE a=?longQuery: > SELECT stuff FROM table WHERE isThisALongQuery=1 AND queriesCanBeMultiline=1 AND thatsWhyILikeYAML=5;global:
enableDynamicQueries: true #Allow queries to be created from SQF, if false only statements from config are allowedschemas:
test: schema.sql #Filename relative to config.yaml to be used in dbLoadSchema
Config has to be in Arma 3@InterceptDB\config.yaml
Other subfolders or renaming the @InterceptDB folder doesn't work. Folder name is also case sensitive on linux.
The config is loaded at preInit. If anything on the config loading fails, a error will be printed to the RPT.
#TODO if people need it, add ability to set connection options in config.