BlueG's MySQL - Too Many Connections
#5

Im now getting the following errors in the mysql log:

Код:
[20:44:41] [ERROR] mysql_errno - invalid connection handle (id: 0)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
[20:44:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '127.0.0.1' (10061)
This is now my code:

Код:
public OnGameModeInit(){
	SetGameModeText("BCL-RP 0.1");

	//Connect to MySQL Database
	mysql_connect(DB_HOST, DB_USER, DB_NAME, DB_PASS);
  	if(mysql_errno() == 0){
	    print("Successfully connected to MySQL Database!");
	}else{
	    print("Failed connection to MySQL Database!");
	    GameModeExit();
	}

	return 1;
}
Any suggestions? Restarting mysql has done nothing, but thanks
Reply


Messages In This Thread
BlueG's MySQL - Too Many Connections - by Jonesy96 - 31.05.2016, 18:00
Re: BlueG's MySQL - Too Many Connections - by Konstantinos - 31.05.2016, 18:14
Re: BlueG's MySQL - Too Many Connections - by Jonesy96 - 31.05.2016, 19:14
Re: BlueG's MySQL - Too Many Connections - by Konstantinos - 31.05.2016, 19:44
Re: BlueG's MySQL - Too Many Connections - by Jonesy96 - 31.05.2016, 19:54
Re: BlueG's MySQL - Too Many Connections - by Konstantinos - 31.05.2016, 20:03
Re: BlueG's MySQL - Too Many Connections - by Jonesy96 - 31.05.2016, 20:08
Re: BlueG's MySQL - Too Many Connections - by iKevin - 31.05.2016, 20:09
Re: BlueG's MySQL - Too Many Connections - by Jonesy96 - 31.05.2016, 20:29
Re: BlueG's MySQL - Too Many Connections - by alexanderjb918 - 31.05.2016, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)