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(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('staging', NULL) #5 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1462): Zend_Db_Adapter_Abstract->quoteInto('`nk_flag`.`flag...', 'staging', NULL, NULL) #6 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('`nk_flag`.`flag...', 'staging', NULL) #7 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where('`nk_flag`.`flag...', 'staging', NULL, true) #8 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Select.php(119): Zend_Db_Select->where('`nk_flag`.`flag...', 'staging', NULL) #9 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(376): Magento\Framework\DB\Select->where('`nk_flag`.`flag...', 'staging') #10 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(347): Magento\Framework\Model\ResourceModel\Db\AbstractDb->_getLoadSelect('`nk_flag`.`flag...', 'staging', Object(Magento\Staging\Model\Update\Flag)) #11 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/AbstractModel.php(536): Magento\Framework\Model\ResourceModel\Db\AbstractDb->load(Object(Magento\Staging\Model\Update\Flag), 'staging', 'flag_code') #12 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Flag.php(147): Magento\Framework\Model\AbstractModel->load('staging', 'flag_code') #13 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/Update/VersionHistory.php(78): Magento\Framework\Flag->loadSelf() #14 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/Update/VersionHistory.php(58): Magento\Staging\Model\Update\VersionHistory->getFlag() #15 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(186): Magento\Staging\Model\Update\VersionHistory->getCurrentId() #16 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(119): Magento\Staging\Model\VersionManager->getCurrentVersionId() #17 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Staging/Model/VersionManager/Interceptor.php(37): Magento\Staging\Model\VersionManager->getVersion() #18 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(177): Magento\Staging\Model\VersionManager\Interceptor->getVersion() #19 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Staging/Model/VersionManager/Interceptor.php(76): Magento\Staging\Model\VersionManager->isPreviewVersion() #20 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Plugin/Store/Model/StoreResolver.php(57): Magento\Staging\Model\VersionManager\Interceptor->isPreviewVersion() #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(29): 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(29): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #31 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(337): 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(616): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #34 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(262): Monolog\Logger->error('SQLSTATE[HY000]...') #35 /var/www/vhosts/nksports.com/httpdocs/index.php(92): 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(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('staging', NULL) #4 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1462): Zend_Db_Adapter_Abstract->quoteInto('`nk_flag`.`flag...', 'staging', NULL, NULL) #5 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('`nk_flag`.`flag...', 'staging', NULL) #6 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where('`nk_flag`.`flag...', 'staging', NULL, true) #7 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/DB/Select.php(119): Zend_Db_Select->where('`nk_flag`.`flag...', 'staging', NULL) #8 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(376): Magento\Framework\DB\Select->where('`nk_flag`.`flag...', 'staging') #9 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(347): Magento\Framework\Model\ResourceModel\Db\AbstractDb->_getLoadSelect('`nk_flag`.`flag...', 'staging', Object(Magento\Staging\Model\Update\Flag)) #10 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Model/AbstractModel.php(536): Magento\Framework\Model\ResourceModel\Db\AbstractDb->load(Object(Magento\Staging\Model\Update\Flag), 'staging', 'flag_code') #11 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/Flag.php(147): Magento\Framework\Model\AbstractModel->load('staging', 'flag_code') #12 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/Update/VersionHistory.php(78): Magento\Framework\Flag->loadSelf() #13 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/Update/VersionHistory.php(58): Magento\Staging\Model\Update\VersionHistory->getFlag() #14 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(186): Magento\Staging\Model\Update\VersionHistory->getCurrentId() #15 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(119): Magento\Staging\Model\VersionManager->getCurrentVersionId() #16 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Staging/Model/VersionManager/Interceptor.php(37): Magento\Staging\Model\VersionManager->getVersion() #17 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Model/VersionManager.php(177): Magento\Staging\Model\VersionManager\Interceptor->getVersion() #18 /var/www/vhosts/nksports.com/httpdocs/generated/code/Magento/Staging/Model/VersionManager/Interceptor.php(76): Magento\Staging\Model\VersionManager->isPreviewVersion() #19 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/module-staging/Plugin/Store/Model/StoreResolver.php(57): Magento\Staging\Model\VersionManager\Interceptor->isPreviewVersion() #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(29): 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(29): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #30 /var/www/vhosts/nksports.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(337): 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(616): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #33 /var/www/vhosts/nksports.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(262): Monolog\Logger->error('SQLSTATE[HY000]...') #34 /var/www/vhosts/nksports.com/httpdocs/index.php(92): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #35 {main}