PDOException: SQLSTATE[HY000] [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (111) in /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'greenwor_greenw...', '9qZ680sWph', Array) #1 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1636): Zend_Db_Adapter_Abstract->quote('1', NULL) #5 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('1', NULL) #6 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #7 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(362): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #8 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quoteInto('{{fieldName}} =...', '1') #9 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2986): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', '1', '`is_active`') #10 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(804): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`is_active`', 1) #11 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->prepareSqlCondition('`is_active`', 1) #12 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`is_active`', 1) #13 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('is_active', 1) #14 /home/greenwor/public_html/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(121): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('is_active', 1) #15 /home/greenwor/public_html/app/code/Amasty/Groupcat/Model/ResourceModel/Rule/Collection.php(119): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addFieldToFilter('is_active', 1) #16 /home/greenwor/public_html/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(134): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->addFieldToFilter('is_active', 1) #17 /home/greenwor/public_html/app/code/Amasty/Groupcat/Model/ProductRuleProvider.php(127): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addIsActiveFilter() #18 /home/greenwor/public_html/app/code/Amasty/Groupcat/Plugin/Framework/App/Http/Context.php(47): Amasty\Groupcat\Model\ProductRuleProvider->getActiveRulesCollection() #19 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(136): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #20 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #21 /home/greenwor/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #22 /home/greenwor/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #23 /home/greenwor/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #24 /home/greenwor/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #25 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(136): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #26 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #27 /home/greenwor/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #28 /home/greenwor/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #29 /home/greenwor/public_html/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)) #30 /home/greenwor/public_html/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)) #31 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(64): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #32 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #33 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #34 /home/greenwor/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #35 /home/greenwor/public_html/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #36 /home/greenwor/public_html/index.php(42): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #37 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (111) in /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1636): Zend_Db_Adapter_Abstract->quote('1', NULL) #4 /home/greenwor/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('1', NULL) #5 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #6 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(362): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', '1', NULL, NULL) #7 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quoteInto('{{fieldName}} =...', '1') #8 /home/greenwor/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2986): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', '1', '`is_active`') #9 /home/greenwor/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(804): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`is_active`', 1) #10 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->prepareSqlCondition('`is_active`', 1) #11 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`is_active`', 1) #12 /home/greenwor/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('is_active', 1) #13 /home/greenwor/public_html/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(121): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('is_active', 1) #14 /home/greenwor/public_html/app/code/Amasty/Groupcat/Model/ResourceModel/Rule/Collection.php(119): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addFieldToFilter('is_active', 1) #15 /home/greenwor/public_html/vendor/magento/module-rule/Model/ResourceModel/Rule/Collection/AbstractCollection.php(134): Amasty\Groupcat\Model\ResourceModel\Rule\Collection->addFieldToFilter('is_active', 1) #16 /home/greenwor/public_html/app/code/Amasty/Groupcat/Model/ProductRuleProvider.php(127): Magento\Rule\Model\ResourceModel\Rule\Collection\AbstractCollection->addIsActiveFilter() #17 /home/greenwor/public_html/app/code/Amasty/Groupcat/Plugin/Framework/App/Http/Context.php(47): Amasty\Groupcat\Model\ProductRuleProvider->getActiveRulesCollection() #18 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(136): Amasty\Groupcat\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #19 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #20 /home/greenwor/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #21 /home/greenwor/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #22 /home/greenwor/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #23 /home/greenwor/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #24 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(136): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #25 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #26 /home/greenwor/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #27 /home/greenwor/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #28 /home/greenwor/public_html/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)) #29 /home/greenwor/public_html/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)) #30 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(64): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #31 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #32 /home/greenwor/public_html/vendor/magento/framework/Interception/Interceptor.php(168): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #33 /home/greenwor/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #34 /home/greenwor/public_html/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #35 /home/greenwor/public_html/index.php(42): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #36 {main}