BlueG's MySQL - Too Many Connections
#1

Hi all,

Using BlueG's MySQL plugin, latest version. Trying to connect to MySQL databae, code below.

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

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

	return 1;
}
The successful connection message is printed fine to the console. However, when I check the MySQL log, I have this error over and over again:

[18:55:14] [ERROR] CMySQLConnection::Connect - (error #1040) Too many connections

If anyone has any ideas on whats causing this, or how to fix, then please advise. I've already checked the MySQL max connections variable, and that is set to 151.

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)