PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=104....', 'nk_magev2', 'Iyf3p2_3', Array) #1 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(406): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `nk_stor...', Array) #5 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(542): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `nk_stor...', Array) #6 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(617): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `nk_stor...', Array) #7 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #8 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(87): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #9 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(57): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #10 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #11 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #12 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #13 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Store\App\Config\Type\Scopes->get('stores/2') #14 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/2', Array) #15 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreRepository.php(127): Magento\Store\Model\StoreRepository->getById('2') #16 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(181): Magento\Store\Model\StoreRepository->getActiveStoreById('2') #17 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->getDefaultStoreById('2') #18 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() #19 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\StoreResolver\Interceptor->___callParent('getCurrentStore...', Array) #20 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Plugin/Store/Model/StoreResolver.php(77): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #21 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Staging\Plugin\Store\Model\StoreResolver->aroundGetCurrentStoreId(Object(Magento\Store\Model\StoreResolver\Interceptor), Object(Closure)) #22 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #23 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Store/Model/StoreResolver/Interceptor.php(26): Magento\Store\Model\StoreResolver\Interceptor->___callPlugins('getCurrentStore...', Array, NULL) #24 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreManager.php(157): Magento\Store\Model\StoreResolver\Interceptor->getCurrentStoreId() #25 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #26 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #27 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #28 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #29 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63): Magento\Framework\App\Config->getValue('dev/debug/debug...', 'stores') #30 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #31 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #32 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'SQLSTATE[HY000]...', Array) #33 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(707): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #34 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(263): Monolog\Logger->error('SQLSTATE[HY000]...') #35 /var/www/vhosts/nksports.com/httpdocs/index.php(104): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #36 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(406): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `nk_stor...', Array) #4 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(542): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `nk_stor...', Array) #5 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(617): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `nk_stor...', Array) #6 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #7 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(87): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #8 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(57): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #9 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #10 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #11 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #12 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Store\App\Config\Type\Scopes->get('stores/2') #13 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/2', Array) #14 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreRepository.php(127): Magento\Store\Model\StoreRepository->getById('2') #15 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(181): Magento\Store\Model\StoreRepository->getActiveStoreById('2') #16 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->getDefaultStoreById('2') #17 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() #18 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\StoreResolver\Interceptor->___callParent('getCurrentStore...', Array) #19 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Plugin/Store/Model/StoreResolver.php(77): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #20 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Staging\Plugin\Store\Model\StoreResolver->aroundGetCurrentStoreId(Object(Magento\Store\Model\StoreResolver\Interceptor), Object(Closure)) #21 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #22 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Store/Model/StoreResolver/Interceptor.php(26): Magento\Store\Model\StoreResolver\Interceptor->___callPlugins('getCurrentStore...', Array, NULL) #23 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/StoreManager.php(157): Magento\Store\Model\StoreResolver\Interceptor->getCurrentStoreId() #24 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #25 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #26 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #27 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #28 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63): Magento\Framework\App\Config->getValue('dev/debug/debug...', 'stores') #29 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #30 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #31 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'SQLSTATE[HY000]...', Array) #32 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(707): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #33 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(263): Monolog\Logger->error('SQLSTATE[HY000]...') #34 /var/www/vhosts/nksports.com/httpdocs/index.php(104): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #35 {main}