PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct() #1 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(589): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #5 /var/www/html/generated/code/Firebear/ImportExport/Setup/Db/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #6 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(794): Firebear\ImportExport\Setup\Db\Adapter\Pdo\Mysql\Interceptor->query() #7 /var/www/html/generated/code/Firebear/ImportExport/Setup/Db/Adapter/Pdo/Mysql/Interceptor.php(1112): Zend_Db_Adapter_Abstract->fetchCol() #8 /var/www/html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(503): Firebear\ImportExport\Setup\Db\Adapter\Pdo\Mysql\Interceptor->fetchCol() #9 /var/www/html/vendor/amasty/groupcat/Model/ResourceModel/Rule/Collection.php(292): Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection->getAllIds() #10 /var/www/html/generated/code/Amasty/Groupcat/Model/ResourceModel/Rule/Collection/Interceptor.php(104): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->getAllIds() #11 /var/www/html/vendor/amasty/groupcat/Plugin/Framework/App/Http/Context.php(46): Amasty\Groupcat\Model\ResourceModel\Rule\Collection\Interceptor->getAllIds() #12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString() #13 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #14 /var/www/html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(59): Magento\Framework\App\Http\Context\Interceptor->___callPlugins() #15 /var/www/html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #16 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #17 /var/www/html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #18 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse() #19 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #20 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #21 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #22 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #23 /var/www/html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #26 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #27 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #28 /var/www/html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #29 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #30 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(424): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(589): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(627): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #4 /var/www/html/generated/code/Firebear/ImportExport/Setup/Db/Adapter/Pdo/Mysql/Interceptor.php(95): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #5 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(794): Firebear\ImportExport\Setup\Db\Adapter\Pdo\Mysql\Interceptor->query() #6 /var/www/html/generated/code/Firebear/ImportExport/Setup/Db/Adapter/Pdo/Mysql/Interceptor.php(1112): Zend_Db_Adapter_Abstract->fetchCol() #7 /var/www/html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(503): Firebear\ImportExport\Setup\Db\Adapter\Pdo\Mysql\Interceptor->fetchCol() #8 /var/www/html/vendor/amasty/groupcat/Model/ResourceModel/Rule/Collection.php(292): Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection->getAllIds() #9 /var/www/html/generated/code/Amasty/Groupcat/Model/ResourceModel/Rule/Collection/Interceptor.php(104): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->getAllIds() #10 /var/www/html/vendor/amasty/groupcat/Plugin/Framework/App/Http/Context.php(46): Amasty\Groupcat\Model\ResourceModel\Rule\Collection\Interceptor->getAllIds() #11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString() #12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #13 /var/www/html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(59): Magento\Framework\App\Http\Context\Interceptor->___callPlugins() #14 /var/www/html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #15 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #16 /var/www/html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #17 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse() #18 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #19 /var/www/html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins() #20 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #21 /var/www/html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode() #22 /var/www/html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle() #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #26 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(32): Magento\Framework\App\Http\Interceptor->___callPlugins() #27 /var/www/html/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http\Interceptor->catchException() #28 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #29 {main}