mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-04 23:32:26 +00:00
Merge 44477a0d471c426182a87090f98cbe179022f32c into 52b8c0e078640ba766028164b5046fd8bf730823
This commit is contained in:
commit
333e6e5b58
@ -43,7 +43,8 @@ DatabaseMySQL::DatabaseMySQL(string user, string pass, string host, string port,
|
||||
if(!mysql_real_connect(db, host.c_str(), user.c_str(), pass.c_str(), name.c_str(), atoi(port.c_str()), nullptr, 0))
|
||||
{
|
||||
mysql_close(db);
|
||||
server_log->Log(log_database, "Failed to connect to MySQL database.");
|
||||
server_log->Log(log_database, "Failed to connect to MySQL database. Error: %s", mysql_error(db));
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user