PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'farmadb-mageE20', 'Dhf%b950', Array) #1 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array) #5 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(533): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array) #6 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `main_ta...', Array) #7 /var/www/vhosts/farmawao.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/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array) #9 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(774): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll(Object(Magento\Framework\DB\Select), Array) #10 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(670): Magento\Framework\Data\Collection\AbstractDb->_fetchAll(Object(Magento\Framework\DB\Select)) #11 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(574): Magento\Framework\Data\Collection\AbstractDb->getData() #12 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(559): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false) #13 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection.php(831): Magento\Framework\Data\Collection\AbstractDb->load() #14 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(83): Magento\Framework\Data\Collection->getIterator() #15 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(63): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #16 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #17 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #18 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #19 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(322): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #20 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(217): Magento\Config\App\Config\Type\System->readData() #21 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(167): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #22 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(141): Magento\Config\App\Config\Type\System->getWithParts('default/layout_...') #23 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/layout_...') #24 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/layout_...') #25 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(93): Magento\Framework\App\Config->getValue('layout_switcher...', 'default', NULL) #26 /var/www/vhosts/farmawao.com/httpdocs/app/code/TemplateMonster/LayoutSwitcher/Helper/Data.php(169): Magento\Framework\App\Config->isSetFlag('layout_switcher...') #27 /var/www/vhosts/farmawao.com/httpdocs/generated/code/TemplateMonster/LayoutSwitcher/Helper/Data/Interceptor.php(24): TemplateMonster\LayoutSwitcher\Helper\Data->isEnabled() #28 /var/www/vhosts/farmawao.com/httpdocs/app/code/TemplateMonster/LayoutSwitcher/Model/StoreResolver/Plugin/ReaderList.php(50): TemplateMonster\LayoutSwitcher\Helper\Data\Interceptor->isEnabled() #29 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): TemplateMonster\LayoutSwitcher\Model\StoreResolver\Plugin\ReaderList->aroundGetReader(Object(Magento\Store\Model\StoreResolver\ReaderList\Interceptor), Object(Closure), 'website') #30 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->Magento\Framework\Interception\{closure}('website') #31 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Store/Model/StoreResolver/ReaderList/Interceptor.php(26): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->___callPlugins('getReader', Array, NULL) #32 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(139): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->getReader('website') #33 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->readStoresData() #34 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(89): Magento\Store\Model\StoreResolver->getStoresData() #35 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreManager.php(157): Magento\Store\Model\StoreResolver->getCurrentStoreId() #36 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #37 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #38 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #39 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #40 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63): Magento\Framework\App\Config->getValue('dev/debug/debug...', 'stores') #41 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #42 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #43 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'SQLSTATE[HY000]...', Array) #44 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(712): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #45 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(262): Monolog\Logger->error('SQLSTATE[HY000]...') #46 /var/www/vhosts/farmawao.com/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #47 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array) #4 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(533): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array) #5 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `main_ta...', Array) #6 /var/www/vhosts/farmawao.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/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array) #8 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(774): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll(Object(Magento\Framework\DB\Select), Array) #9 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(670): Magento\Framework\Data\Collection\AbstractDb->_fetchAll(Object(Magento\Framework\DB\Select)) #10 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(574): Magento\Framework\Data\Collection\AbstractDb->getData() #11 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection/AbstractDb.php(559): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false) #12 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Data/Collection.php(831): Magento\Framework\Data\Collection\AbstractDb->load() #13 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(83): Magento\Framework\Data\Collection->getIterator() #14 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(63): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #15 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #16 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #17 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #18 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(322): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #19 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(217): Magento\Config\App\Config\Type\System->readData() #20 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(167): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #21 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(141): Magento\Config\App\Config\Type\System->getWithParts('default/layout_...') #22 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/layout_...') #23 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/layout_...') #24 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(93): Magento\Framework\App\Config->getValue('layout_switcher...', 'default', NULL) #25 /var/www/vhosts/farmawao.com/httpdocs/app/code/TemplateMonster/LayoutSwitcher/Helper/Data.php(169): Magento\Framework\App\Config->isSetFlag('layout_switcher...') #26 /var/www/vhosts/farmawao.com/httpdocs/generated/code/TemplateMonster/LayoutSwitcher/Helper/Data/Interceptor.php(24): TemplateMonster\LayoutSwitcher\Helper\Data->isEnabled() #27 /var/www/vhosts/farmawao.com/httpdocs/app/code/TemplateMonster/LayoutSwitcher/Model/StoreResolver/Plugin/ReaderList.php(50): TemplateMonster\LayoutSwitcher\Helper\Data\Interceptor->isEnabled() #28 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(135): TemplateMonster\LayoutSwitcher\Model\StoreResolver\Plugin\ReaderList->aroundGetReader(Object(Magento\Store\Model\StoreResolver\ReaderList\Interceptor), Object(Closure), 'website') #29 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->Magento\Framework\Interception\{closure}('website') #30 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Store/Model/StoreResolver/ReaderList/Interceptor.php(26): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->___callPlugins('getReader', Array, NULL) #31 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(139): Magento\Store\Model\StoreResolver\ReaderList\Interceptor->getReader('website') #32 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->readStoresData() #33 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreResolver.php(89): Magento\Store\Model\StoreResolver->getStoresData() #34 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/StoreManager.php(157): Magento\Store\Model\StoreResolver->getCurrentStoreId() #35 /var/www/vhosts/farmawao.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #36 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #37 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #38 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #39 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63): Magento\Framework\App\Config->getValue('dev/debug/debug...', 'stores') #40 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #41 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #42 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'SQLSTATE[HY000]...', Array) #43 /var/www/vhosts/farmawao.com/httpdocs/vendor/monolog/monolog/src/Monolog/Logger.php(712): Magento\Framework\Logger\Monolog->addRecord(400, 'SQLSTATE[HY000]...', Array) #44 /var/www/vhosts/farmawao.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(262): Monolog\Logger->error('SQLSTATE[HY000]...') #45 /var/www/vhosts/farmawao.com/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #46 {main}