MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / LoadDatabaseConnection

Function LoadDatabaseConnection

loginserver/main.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void 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
48void LoadServerConfig()
49{

Callers 1

mainFunction · 0.85

Calls 3

GetVariableStringMethod · 0.80
GetVariableIntMethod · 0.80
ConnectMethod · 0.45

Tested by

no test coverage detected