MySQL connecting problem
#1

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:

Code:
[21:40:00] CMySQLHandler::Connect() - Can't connect to MySQL server on '213.239.205.210' (110) (Error ID: 2003)
It's remote machine, not localhost.


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!
Reply


Messages In This Thread
MySQL connecting problem - by Pooh7 - 04.06.2011, 09:38
Re: MySQL connecting problem - by andruz99 - 08.07.2011, 21:30
Re: MySQL connecting problem - by Jochemd - 09.07.2011, 14:32
Re: MySQL connecting problem - by Hal - 10.07.2011, 03:11
Re: MySQL connecting problem - by Vince - 10.07.2011, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)