04.06.2011, 09:38
I have a problem with connecting server to MySQL database.
Server was online previous 30 days and worked without any problems. But today I saw this error in MySQL log:
It's remote machine, not localhost.
Code for connecting:
Note: I have not changed anything in gamemode!
Note 2: All data are correct!
Server was online previous 30 days and worked without any problems. But today I saw this error in MySQL log:
Code:
[21:40:00] CMySQLHandler::Connect() - Can't connect to MySQL server on '213.239.205.210' (110) (Error ID: 2003)
Code for connecting:
pawn Code:
#define MYSQL_HOST "213.239.205.210"
#define MYSQL_USER "***"
#define MYSQL_DB "***"
#define MYSQL_PASS "***"
stock SpojiSeSaBazom()
{
if(mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS)) print("Spajanje sa MySQL bazom je uspesno!");
else print("Spajanje sa MySQL bazom nije uspelo...");
}
main()
{
SpojiSeSaBazom();
mysql_debug(1);
}
Note: I have not changed anything in gamemode!
Note 2: All data are correct!