PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=10.1...', 'danielatacado', 'xee9oothohf0pho...', Array) #1 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(422): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('1', NULL) #5 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1529): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #6 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3046): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', '1') #7 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3030): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', '1', '`is_active`') #8 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`is_active`', 1) #9 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`is_active`', 1) #10 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('is_active', 1) #11 /var/www/html/danielatacado/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(121): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('is_active', 1) #12 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Model/ResourceModel/Rule/Collection.php(120): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addFieldToFilter('is_active', 1) #13 /var/www/html/danielatacado/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(134): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->addFieldToFilter('is_active', 1) #14 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Model/ProductRuleProvider.php(119): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addIsActiveFilter() #15 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Plugin/Framework/App/Http/Context.php(47): Amasty\Groupcat\Model\ProductRuleProvider->getActiveRulesCollection() #16 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(121): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #17 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #18 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(23): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #19 /var/www/html/danielatacado/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #20 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #21 /var/www/html/danielatacado/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #22 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #23 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #24 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #25 /var/www/html/danielatacado/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #26 /var/www/html/danielatacado/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #27 /var/www/html/danielatacado/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #28 /var/www/html/danielatacado/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #29 /var/www/html/danielatacado/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #30 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(422): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/danielatacado/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('1', NULL) #4 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1529): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #5 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3046): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', '1') #6 /var/www/html/danielatacado/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3030): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', '1', '`is_active`') #7 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`is_active`', 1) #8 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`is_active`', 1) #9 /var/www/html/danielatacado/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('is_active', 1) #10 /var/www/html/danielatacado/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(121): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('is_active', 1) #11 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Model/ResourceModel/Rule/Collection.php(120): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addFieldToFilter('is_active', 1) #12 /var/www/html/danielatacado/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(134): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->addFieldToFilter('is_active', 1) #13 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Model/ProductRuleProvider.php(119): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addIsActiveFilter() #14 /var/www/html/danielatacado/vendor/bistwobis/groupcat-amasty/Plugin/Framework/App/Http/Context.php(47): Amasty\Groupcat\Model\ProductRuleProvider->getActiveRulesCollection() #15 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(121): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #16 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #17 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(23): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #18 /var/www/html/danielatacado/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #19 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(32): Magento\Framework\App\Response\Http->sendVary() #20 /var/www/html/danielatacado/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(29): Magento\Framework\App\Response\Http\Interceptor->sendVary() #21 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #22 /var/www/html/danielatacado/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #23 /var/www/html/danielatacado/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(86): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #24 /var/www/html/danielatacado/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #25 /var/www/html/danielatacado/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #26 /var/www/html/danielatacado/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #27 /var/www/html/danielatacado/vendor/magento/framework/App/Bootstrap.php(269): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #28 /var/www/html/danielatacado/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #29 {main}