Error: Exception: SQLSTATE[08004] [1040] Too many connections (in /var/www/html/wire/core/ProcessWire.php line 163)

#0 /var/www/html/wire/core/ProcessWire.php(57): ProcessWire->load(Object(Config))
#1 /var/www/html/index.php(241): ProcessWire->__construct(Object(Config))
#2 {main}

This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.