PDOException: SQLSTATE[08004] [1040] Too many connections in /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct() #1 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query() #5 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(560): Zend_Db_Adapter_Pdo_Abstract->query() #6 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #7 /var/www/magento/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #8 /var/www/magento/vendor/magento/framework/Lock/Backend/Database.php(84): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query() #9 /var/www/magento/vendor/magento/framework/Cache/LockGuardedCacheLoader.php(134): Magento\Framework\Lock\Backend\Database->lock() #10 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(281): Magento\Framework\Cache\LockGuardedCacheLoader->lockedLoadData() #11 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(207): Magento\Config\App\Config\Type\System->loadDefaultScopeData() #12 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(181): Magento\Config\App\Config\Type\System->getWithParts() #13 /var/www/magento/vendor/magento/framework/App/Config.php(132): Magento\Config\App\Config\Type\System->get() #14 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(50): Magento\Framework\App\Config->get() #15 /var/www/magento/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config\Interceptor->get() #16 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(23): Magento\Framework\App\Config->getValue() #17 /var/www/magento/vendor/magento/framework/App/Config.php(93): Magento\Framework\App\Config\Interceptor->getValue() #18 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(32): Magento\Framework\App\Config->isSetFlag() #19 /var/www/magento/vendor/magento/module-new-relic-reporting/Model/Config.php(94): Magento\Framework\App\Config\Interceptor->isSetFlag() #20 /var/www/magento/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #21 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException() #22 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #23 /var/www/magento/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #24 /var/www/magento/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #25 /var/www/magento/index.php(45): Magento\Framework\App\Bootstrap->run() #26 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[08004] [1040] Too many connections in /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/magento/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query() #4 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(560): Zend_Db_Adapter_Pdo_Abstract->query() #5 /var/www/magento/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #6 /var/www/magento/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #7 /var/www/magento/vendor/magento/framework/Lock/Backend/Database.php(84): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query() #8 /var/www/magento/vendor/magento/framework/Cache/LockGuardedCacheLoader.php(134): Magento\Framework\Lock\Backend\Database->lock() #9 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(281): Magento\Framework\Cache\LockGuardedCacheLoader->lockedLoadData() #10 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(207): Magento\Config\App\Config\Type\System->loadDefaultScopeData() #11 /var/www/magento/vendor/magento/module-config/App/Config/Type/System.php(181): Magento\Config\App\Config\Type\System->getWithParts() #12 /var/www/magento/vendor/magento/framework/App/Config.php(132): Magento\Config\App\Config\Type\System->get() #13 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(50): Magento\Framework\App\Config->get() #14 /var/www/magento/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config\Interceptor->get() #15 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(23): Magento\Framework\App\Config->getValue() #16 /var/www/magento/vendor/magento/framework/App/Config.php(93): Magento\Framework\App\Config\Interceptor->getValue() #17 /var/www/magento/generated/code/Magento/Framework/App/Config/Interceptor.php(32): Magento\Framework\App\Config->isSetFlag() #18 /var/www/magento/vendor/magento/module-new-relic-reporting/Model/Config.php(94): Magento\Framework\App\Config\Interceptor->isSetFlag() #19 /var/www/magento/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #20 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException() #21 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #22 /var/www/magento/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #23 /var/www/magento/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #24 /var/www/magento/index.php(45): Magento\Framework\App\Bootstrap->run() #25 {main}