Email was sent:
MySQL generated an error.This user is not logged in.Apache environment: SCRIPT_URI = http://chess.eecs.berkeley.edu/pubs/search/ HTTP_REFERER = REMOTE_HOST = HTTP_GET_VARS: year = 2010 Action = Search The error message is: Cannot connect to MySQL server.Stacktrace: at sqli_error(/home/www/php/include/sqli.inc.php:203) at sqli_connection_error(/home/www/php/include/sqli.inc.php:64) at sqli_select_row(/home/www/php/include/sqli.inc.php:864) at pub_get(/home/www/php/include/pub.inc.php:913) at pub_search(/home/www/php/include/pub.inc.php:1814) at require(/home/www/php/pubs/pubs.php:967) at include(/home/www/php/chess.eecs.berkeley.edu/pubs.php:9) at include(/home/www/php/chess.eecs.berkeley.edu/get.php:121) at /home/www/php/get.php:40
/export/home1/tmp/php.err
contained
01-Aug-2015 01:08:53] PHP Warning: mysqli::mysqli(): (HY000/1040): Too many connections in /home/www/php/include/sqli.inc.php on line 436 [01-Aug-2015 01:08:53] PHP Warning: mysqli_connect(): (HY000/1040): Too many connections in /home/www/php/include/sqli.inc.php on line 860 [01-Aug-2015 01:08:53] PHP Warning: mysqli_connect(): (HY000/1040): Too many connections in /home/www/php/include/sqli.inc.php on line 285 [01-Aug-2015 01:08:53] PHP Warning: mysqli_connect(): (HY000/1040): Too many connections in /home/www/php/include/sqli.inc.php on line 860 [01-Aug-2015 01:08:53] [client 188.143.232.37] sqli.inc.php: sqli_prepared_select_row(): Failed to connect to database chess_2 on localhost as dbreader: Too many connections
https://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html suggests setting max_connections
As root, I edited
/etc/my.cnf
:
[mysqld] set-variable=max_connections=250
And then restarted the server:/etc/init.d/gsrc stop
and then /etc/init.d/gsrc start