Need help in mysql
#1

how i fix this error
Код:
[15:52:40] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
and this
Код:
[06:29:58] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '127.0.0.1.' (2)
[06:29:58] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '127.0.0.1.' (0)
[06:29:58] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '127.0.0.1.' (0)
[06:29:58] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host '127.0.0.1.' (0)
please help me
Reply
#2

Could you show us your code please?
Reply
#3

Код:
if (mysql_ping, (1) != 0)
	{
		print("================ [ERROR] ================");
		print("Connection to MySQL failed.");
		SendRconCommand("exit");
		return 1;
	}
    mysql_connect("localhost", "Scorpion", "Scorpion", "z51qu0us6k");
    
	// Reset active row
	MySQL_updateQuery("UPDATE players SET active=0 WHERE active=1");
Reply
#4

help me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)