PDOException: SQLSTATE[HY000] [2002] Connection refused in /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=mysq...', 'app', '6bU3HMBESGlVBpN...', Array) #1 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #5 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #6 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #7 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #8 /data/web/magento2/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #9 /data/web/magento2/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #10 /data/web/magento2/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #11 /data/web/magento2/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #12 /data/web/magento2/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #13 /data/web/magento2/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/1') #14 /data/web/magento2/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/1', Array) #15 /data/web/magento2/vendor/magento/module-store/Model/StoreRepository.php(127): Magento\Store\Model\StoreRepository->getById('1') #16 /data/web/magento2/vendor/magento/module-store/Model/StoreResolver.php(181): Magento\Store\Model\StoreRepository->getActiveStoreById('1') #17 /data/web/magento2/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->getDefaultStoreById('1') #18 /data/web/magento2/vendor/magento/module-store/Model/StoreManager.php(160): Magento\Store\Model\StoreResolver->getCurrentStoreId() #19 /data/web/magento2/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #20 /data/web/magento2/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #21 /data/web/magento2/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #22 /data/web/magento2/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #23 /data/web/magento2/vendor/magento/framework/Session/Config.php(195): Magento\Framework\App\Config->getValue('web/cookie/cook...', 'stores') #24 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Session\Config->__construct(Object(Magento\Framework\ValidatorFactory), Object(Magento\Framework\App\Config\Interceptor), Object(Magento\Framework\Stdlib\StringUtils), Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Filesystem), Object(Magento\Framework\App\DeploymentConfig), 'store', 'web/cookie/cook...') #25 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #26 /data/web/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...') #27 /data/web/magento2/vendor/magento/framework/App/Response/Http.php(85): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...') #28 /data/web/magento2/vendor/magento/module-media-storage/Model/File/Storage/Response.php(47): Magento\Framework\App\Response\Http->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime)) #29 /data/web/magento2/generated/code/Magento/MediaStorage/Model/File/Storage/Response/Interceptor.php(14): Magento\MediaStorage\Model\File\Storage\Response->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime), Object(Magento\Framework\File\Transfer\Adapter\Http)) #30 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\MediaStorage\Model\File\Storage\Response\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime), Object(Magento\Framework\File\Transfer\Adapter\Http)) #31 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\MediaSt...', Array) #32 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\MediaSt...') #33 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\MediaSt...') #34 /data/web/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\MediaSt...', Array) #35 /data/web/magento2/vendor/magento/framework/App/Bootstrap.php(235): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\MediaSt...', Array) #36 /data/web/magento2/pub/get.php(81): Magento\Framework\App\Bootstrap->createApplication('Magento\\MediaSt...', Array) #37 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #4 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #5 /data/web/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #6 /data/web/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #7 /data/web/magento2/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(101): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #8 /data/web/magento2/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #9 /data/web/magento2/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #10 /data/web/magento2/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #11 /data/web/magento2/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #12 /data/web/magento2/vendor/magento/framework/App/Config.php(132): Magento\Store\App\Config\Type\Scopes->get('stores/1') #13 /data/web/magento2/vendor/magento/module-store/Model/StoreRepository.php(106): Magento\Framework\App\Config->get('scopes', 'stores/1', Array) #14 /data/web/magento2/vendor/magento/module-store/Model/StoreRepository.php(127): Magento\Store\Model\StoreRepository->getById('1') #15 /data/web/magento2/vendor/magento/module-store/Model/StoreResolver.php(181): Magento\Store\Model\StoreRepository->getActiveStoreById('1') #16 /data/web/magento2/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->getDefaultStoreById('1') #17 /data/web/magento2/vendor/magento/module-store/Model/StoreManager.php(160): Magento\Store\Model\StoreResolver->getCurrentStoreId() #18 /data/web/magento2/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #19 /data/web/magento2/vendor/magento/module-store/Model/Resolver/Store.php(30): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #20 /data/web/magento2/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #21 /data/web/magento2/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #22 /data/web/magento2/vendor/magento/framework/Session/Config.php(195): Magento\Framework\App\Config->getValue('web/cookie/cook...', 'stores') #23 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Session\Config->__construct(Object(Magento\Framework\ValidatorFactory), Object(Magento\Framework\App\Config\Interceptor), Object(Magento\Framework\Stdlib\StringUtils), Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Filesystem), Object(Magento\Framework\App\DeploymentConfig), 'store', 'web/cookie/cook...') #24 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #25 /data/web/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...') #26 /data/web/magento2/vendor/magento/framework/App/Response/Http.php(85): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...') #27 /data/web/magento2/vendor/magento/module-media-storage/Model/File/Storage/Response.php(47): Magento\Framework\App\Response\Http->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime)) #28 /data/web/magento2/generated/code/Magento/MediaStorage/Model/File/Storage/Response/Interceptor.php(14): Magento\MediaStorage\Model\File\Storage\Response->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime), Object(Magento\Framework\File\Transfer\Adapter\Http)) #29 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\MediaStorage\Model\File\Storage\Response\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Framework\Stdlib\DateTime), Object(Magento\Framework\File\Transfer\Adapter\Http)) #30 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\MediaSt...', Array) #31 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\MediaSt...') #32 /data/web/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\MediaSt...') #33 /data/web/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\MediaSt...', Array) #34 /data/web/magento2/vendor/magento/framework/App/Bootstrap.php(235): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\MediaSt...', Array) #35 /data/web/magento2/pub/get.php(81): Magento\Framework\App\Bootstrap->createApplication('Magento\\MediaSt...', Array) #36 {main}