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