| 30 | } |
| 31 | |
| 32 | void LoadDatabaseConnection() |
| 33 | { |
| 34 | LogInfo("MySQL Database Init"); |
| 35 | |
| 36 | if (!database.Connect( |
| 37 | server.config.GetVariableString("database", "host", "localhost"), |
| 38 | server.config.GetVariableString("database", "user", "root"), |
| 39 | server.config.GetVariableString("database", "password", ""), |
| 40 | server.config.GetVariableString("database", "db", "peq"), |
| 41 | server.config.GetVariableInt("database", "port", 3306) |
| 42 | )) { |
| 43 | LogError("Cannot continue without a database connection"); |
| 44 | std::exit(1); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void LoadServerConfig() |
| 49 | { |
no test coverage detected