27.08.2014, 22:31
I've started experiencing a weird problem... I can't connect to my database..
Here's the defines, etc.. Plus connection code, I use the newest version availiable R39-2.
I'm also using cache.. So bassicly here's the connection code:
Plus here's the mysql_log(LOG_ALL) file:
Here's the defines, etc.. Plus connection code, I use the newest version availiable R39-2.
I'm also using cache.. So bassicly here's the connection code:
pawn Code:
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_DB "sql_learning"
#define SQL_PASS ""
public OnGameModeInit()
{
connection = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
mysql_log(LOG_ALL);
/*if(connection > 0)
{
mysql_log(LOG_ALL);
printf("[MYSQL]: Connection to `%s` successfull!", SQL_DB);
}
else
{
printf("[MYSQL]: [ERROR]: Connection to `%s` failed!", SQL_DB);
}
*/
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
PHP Code:
[01:07:32] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[01:07:32] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[01:07:32] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[01:07:32] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[01:07:33] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[01:07:33] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[01:07:33] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)