31.05.2016, 18:00
Hi all,
Using BlueG's MySQL plugin, latest version. Trying to connect to MySQL databae, code below.
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
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; }
[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