13.02.2018, 20:31
Aye
I am getting this error while running my server:
Pawn code:
The parameters must be correct since I am able to log with these through phpMyAdmin. What could be the issue?
Might it be the fact im using a static Debian MySQL version?
I am getting this error while running my server:
Код:
Connection::Connection - establishing connection to MySQL database failed: #2003 'Can't connect to MySQL server on host (xx.xx.xx.xx) (111)
PHP код:
new MySQLOpt: option_id = mysql_init_options();
mysql_set_option(option_id, AUTO_RECONNECT, true);
SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, option_id);
if (SQL == MYSQL_INVALID_HANDLE || mysql_errno(SQL) != 0)
{
print("MySQL connection failed. Server is shutting down.");
SendRconCommand("exit");
return 1;
}
Might it be the fact im using a static Debian MySQL version?