Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=mage...', 'uvation', Object(SensitiveParameterValue), Array) #1 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(485): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php(242): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #5 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(614): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #6 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(639): Magento\Framework\DB\Adapter\Pdo\Mysql->Magento\Framework\DB\Adapter\Pdo\{closure}() #7 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(614): Magento\Framework\DB\Adapter\Pdo\Mysql->performQuery(Object(Closure)) #8 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(703): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #9 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #10 /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(100): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #11 /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #12 /var/www/html/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(42): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #13 /var/www/html/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(105): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #14 /var/www/html/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #15 /var/www/html/vendor/magento/framework/App/Config.php(131): Magento\Store\App\Config\Type\Scopes->get('websites') #16 /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php(198): Magento\Framework\App\Config->get('scopes', 'websites', Array) #17 /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php(156): Magento\Store\Model\WebsiteRepository->initDefaultWebsite() #18 /var/www/html/vendor/magento/module-store/Model/StoreResolver/Website.php(49): Magento\Store\Model\WebsiteRepository->getDefault() #19 /var/www/html/vendor/magento/module-store/Model/StoresData.php(67): Magento\Store\Model\StoreResolver\Website->getAllowedStoreIds(NULL) #20 /var/www/html/vendor/magento/module-store/Model/StoreResolver.php(138): Magento\Store\Model\StoresData->getStoresData('website', NULL) #21 /var/www/html/vendor/magento/module-store/Model/StoreResolver.php(97): Magento\Store\Model\StoreResolver->getStoresData() #22 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\StoreResolver\Interceptor->___callParent('getCurrentStore...', Array) #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #25 /var/www/html/generated/code/Magento/Store/Model/StoreResolver/Interceptor.php(23): Magento\Store\Model\StoreResolver\Interceptor->___callPlugins('getCurrentStore...', Array, Array) #26 /var/www/html/generated/code/Magento/Store/Model/StoreResolver/Proxy.php(105): Magento\Store\Model\StoreResolver\Interceptor->getCurrentStoreId() #27 /var/www/html/vendor/magento/module-store/Model/StoreManager.php(159): Magento\Store\Model\StoreResolver\Proxy->getCurrentStoreId() #28 [internal function]: Magento\Store\Model\StoreManager->getStore() #29 /var/www/html/vendor/magento/framework/App/Bootstrap.php(257): -oneagentphp_enter(74) #30 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #31 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php:148 Stack trace: #0 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(485): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php(242): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) #4 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(614): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) #5 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(639): Magento\Framework\DB\Adapter\Pdo\Mysql->Magento\Framework\DB\Adapter\Pdo\{closure}() #6 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(614): Magento\Framework\DB\Adapter\Pdo\Mysql->performQuery(Object(Closure)) #7 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(703): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #8 /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #9 /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(100): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #10 /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(61): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #11 /var/www/html/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(42): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #12 /var/www/html/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(105): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #13 /var/www/html/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #14 /var/www/html/vendor/magento/framework/App/Config.php(131): Magento\Store\App\Config\Type\Scopes->get('websites') #15 /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php(198): Magento\Framework\App\Config->get('scopes', 'websites', Array) #16 /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php(156): Magento\Store\Model\WebsiteRepository->initDefaultWebsite() #17 /var/www/html/vendor/magento/module-store/Model/StoreResolver/Website.php(49): Magento\Store\Model\WebsiteRepository->getDefault() #18 /var/www/html/vendor/magento/module-store/Model/StoresData.php(67): Magento\Store\Model\StoreResolver\Website->getAllowedStoreIds(NULL) #19 /var/www/html/vendor/magento/module-store/Model/StoreResolver.php(138): Magento\Store\Model\StoresData->getStoresData('website', NULL) #20 /var/www/html/vendor/magento/module-store/Model/StoreResolver.php(97): Magento\Store\Model\StoreResolver->getStoresData() #21 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() #22 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\StoreResolver\Interceptor->___callParent('getCurrentStore...', Array) #23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #24 /var/www/html/generated/code/Magento/Store/Model/StoreResolver/Interceptor.php(23): Magento\Store\Model\StoreResolver\Interceptor->___callPlugins('getCurrentStore...', Array, Array) #25 /var/www/html/generated/code/Magento/Store/Model/StoreResolver/Proxy.php(105): Magento\Store\Model\StoreResolver\Interceptor->getCurrentStoreId() #26 /var/www/html/vendor/magento/module-store/Model/StoreManager.php(159): Magento\Store\Model\StoreResolver\Proxy->getCurrentStoreId() #27 [internal function]: Magento\Store\Model\StoreManager->getStore() #28 /var/www/html/vendor/magento/framework/App/Bootstrap.php(257): -oneagentphp_enter(74) #29 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #30 {main} thrown in /var/www/html/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php on line 148