PDOException: SQLSTATE[HY000] [2002] Connection refused in /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=127....', 'gbzmagento', 'KiYm!K2[R[W6', Array) #1 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1636): Zend_Db_Adapter_Abstract->quote('NOT LOGGED IN', NULL) #5 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('NOT LOGGED IN', NULL) #6 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN', NULL, NULL) #7 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(362): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN', NULL, NULL) #8 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN') #9 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2976): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', 'NOT LOGGED IN', '`customer_group...') #10 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(804): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`customer_group...', Array) #11 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->prepareSqlCondition('`customer_group...', Array) #12 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`customer_group...', Array) #13 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(393): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('customer_group_...', Array) #14 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php(89): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter(Array, Array) #15 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php(48): Magento\Framework\Api\SearchCriteria\CollectionProcessor\FilterProcessor->addFilterGroupToCollection(Object(Magento\Framework\Api\Search\FilterGroup), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #16 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor.php(38): Magento\Framework\Api\SearchCriteria\CollectionProcessor\FilterProcessor->process(Object(Magento\Framework\Api\SearchCriteria), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #17 /home/gbz/public_html/vendor/magento/module-customer/Model/ResourceModel/GroupRepository.php(195): Magento\Framework\Api\SearchCriteria\CollectionProcessor->process(Object(Magento\Framework\Api\SearchCriteria), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #18 /home/gbz/public_html/generated/code/Magento/Customer/Model/ResourceModel/GroupRepository/Interceptor.php(50): Magento\Customer\Model\ResourceModel\GroupRepository->getList(Object(Magento\Framework\Api\SearchCriteria)) #19 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Helper/Data.php(331): Magento\Customer\Model\ResourceModel\GroupRepository\Interceptor->getList(Object(Magento\Framework\Api\SearchCriteria)) #20 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Helper/Data.php(424): Anowave\TaxSwitch\Helper\Data->getCurrentCustomerGroupTaxDisplay() #21 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Plugin/Framework/App/Http/Context.php(64): Anowave\TaxSwitch\Helper\Data->getCurrentTaxDisplay() #22 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(184): Anowave\TaxSwitch\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #23 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #24 /home/gbz/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #25 /home/gbz/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #26 /home/gbz/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #27 /home/gbz/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #28 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(184): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #29 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #30 /home/gbz/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #31 /home/gbz/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #32 /home/gbz/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)) #33 /home/gbz/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)) #34 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(60): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #35 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(201): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #36 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #37 /home/gbz/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #38 /home/gbz/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)) #39 /home/gbz/public_html/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #40 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1636): Zend_Db_Adapter_Abstract->quote('NOT LOGGED IN', NULL) #4 /home/gbz/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quote('NOT LOGGED IN', NULL) #5 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN', NULL, NULL) #6 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(362): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN', NULL, NULL) #7 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->quoteInto('{{fieldName}} =...', 'NOT LOGGED IN') #8 /home/gbz/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2976): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} =...', 'NOT LOGGED IN', '`customer_group...') #9 /home/gbz/public_html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(804): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`customer_group...', Array) #10 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->prepareSqlCondition('`customer_group...', Array) #11 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`customer_group...', Array) #12 /home/gbz/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(393): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('customer_group_...', Array) #13 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php(89): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter(Array, Array) #14 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php(48): Magento\Framework\Api\SearchCriteria\CollectionProcessor\FilterProcessor->addFilterGroupToCollection(Object(Magento\Framework\Api\Search\FilterGroup), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #15 /home/gbz/public_html/vendor/magento/framework/Api/SearchCriteria/CollectionProcessor.php(38): Magento\Framework\Api\SearchCriteria\CollectionProcessor\FilterProcessor->process(Object(Magento\Framework\Api\SearchCriteria), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #16 /home/gbz/public_html/vendor/magento/module-customer/Model/ResourceModel/GroupRepository.php(195): Magento\Framework\Api\SearchCriteria\CollectionProcessor->process(Object(Magento\Framework\Api\SearchCriteria), Object(Magento\Customer\Model\ResourceModel\Group\Collection)) #17 /home/gbz/public_html/generated/code/Magento/Customer/Model/ResourceModel/GroupRepository/Interceptor.php(50): Magento\Customer\Model\ResourceModel\GroupRepository->getList(Object(Magento\Framework\Api\SearchCriteria)) #18 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Helper/Data.php(331): Magento\Customer\Model\ResourceModel\GroupRepository\Interceptor->getList(Object(Magento\Framework\Api\SearchCriteria)) #19 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Helper/Data.php(424): Anowave\TaxSwitch\Helper\Data->getCurrentCustomerGroupTaxDisplay() #20 /home/gbz/public_html/app/code/Anowave/TaxSwitch/Plugin/Framework/App/Http/Context.php(64): Anowave\TaxSwitch\Helper\Data->getCurrentTaxDisplay() #21 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(184): Anowave\TaxSwitch\Plugin\Framework\App\Http\Context->beforeGetVaryString(Object(Magento\Framework\App\Http\Context\Interceptor)) #22 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #23 /home/gbz/public_html/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #24 /home/gbz/public_html/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #25 /home/gbz/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #26 /home/gbz/public_html/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #27 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(184): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #28 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #29 /home/gbz/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #30 /home/gbz/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #31 /home/gbz/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)) #32 /home/gbz/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)) #33 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(60): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #34 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(201): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #35 /home/gbz/public_html/vendor/magento/framework/Interception/Interceptor.php(216): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #36 /home/gbz/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #37 /home/gbz/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)) #38 /home/gbz/public_html/pub/index.php(40): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #39 {main}