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