PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct() #1 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query() #5 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query() #6 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #7 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #8 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll() #9 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(782): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll() #10 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(677): Magento\Framework\Data\Collection\AbstractDb->_fetchAll() #11 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(580): Magento\Framework\Data\Collection\AbstractDb->getData() #12 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(565): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter() #13 /var/www/html/magento2/app/code/Magento/Config/App/Config/Source/RuntimeConfigSource.php(88): Magento\Framework\Data\Collection\AbstractDb->load() #14 /var/www/html/magento2/app/code/Magento/Config/App/Config/Source/RuntimeConfigSource.php(72): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #15 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get() #16 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #17 /var/www/html/magento2/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #18 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(395): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #19 /var/www/html/magento2/lib/internal/Magento/Framework/Cache/LockGuardedCacheLoader.php(103): Magento\Config\App\Config\Type\System->readData() #20 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(281): Magento\Framework\Cache\LockGuardedCacheLoader->lockedLoadData() #21 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(207): Magento\Config\App\Config\Type\System->loadDefaultScopeData() #22 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(181): Magento\Config\App\Config\Type\System->getWithParts() #23 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(132): Magento\Config\App\Config\Type\System->get() #24 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(80): Magento\Framework\App\Config->get() #25 /var/www/html/magento2/generated/code/Magento/Framework/App/Config/Interceptor.php(24): Magento\Framework\App\Config->getValue() #26 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(93): Magento\Framework\App\Config\Interceptor->getValue() #27 /var/www/html/magento2/generated/code/Magento/Framework/App/Config/Interceptor.php(37): Magento\Framework\App\Config->isSetFlag() #28 /var/www/html/magento2/app/code/Magento/NewRelicReporting/Model/Config.php(94): Magento\Framework\App\Config\Interceptor->isSetFlag() #29 /var/www/html/magento2/app/code/Magento/NewRelicReporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #30 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException() #31 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #32 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(26): Magento\Framework\App\Http\Interceptor->___callPlugins() #33 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException() #34 /var/www/html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run() #35 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(413): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query() #4 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(549): Zend_Db_Adapter_Pdo_Abstract->query() #5 /var/www/html/magento2/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php(616): Magento\Framework\DB\Adapter\Pdo\Mysql->_query() #6 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query() #7 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll() #8 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(782): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll() #9 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(677): Magento\Framework\Data\Collection\AbstractDb->_fetchAll() #10 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(580): Magento\Framework\Data\Collection\AbstractDb->getData() #11 /var/www/html/magento2/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(565): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter() #12 /var/www/html/magento2/app/code/Magento/Config/App/Config/Source/RuntimeConfigSource.php(88): Magento\Framework\Data\Collection\AbstractDb->load() #13 /var/www/html/magento2/app/code/Magento/Config/App/Config/Source/RuntimeConfigSource.php(72): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #14 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get() #15 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #16 /var/www/html/magento2/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #17 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(395): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #18 /var/www/html/magento2/lib/internal/Magento/Framework/Cache/LockGuardedCacheLoader.php(103): Magento\Config\App\Config\Type\System->readData() #19 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(281): Magento\Framework\Cache\LockGuardedCacheLoader->lockedLoadData() #20 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(207): Magento\Config\App\Config\Type\System->loadDefaultScopeData() #21 /var/www/html/magento2/app/code/Magento/Config/App/Config/Type/System.php(181): Magento\Config\App\Config\Type\System->getWithParts() #22 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(132): Magento\Config\App\Config\Type\System->get() #23 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(80): Magento\Framework\App\Config->get() #24 /var/www/html/magento2/generated/code/Magento/Framework/App/Config/Interceptor.php(24): Magento\Framework\App\Config->getValue() #25 /var/www/html/magento2/lib/internal/Magento/Framework/App/Config.php(93): Magento\Framework\App\Config\Interceptor->getValue() #26 /var/www/html/magento2/generated/code/Magento/Framework/App/Config/Interceptor.php(37): Magento\Framework\App\Config->isSetFlag() #27 /var/www/html/magento2/app/code/Magento/NewRelicReporting/Model/Config.php(94): Magento\Framework\App\Config\Interceptor->isSetFlag() #28 /var/www/html/magento2/app/code/Magento/NewRelicReporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #29 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException() #30 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #31 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(26): Magento\Framework\App\Http\Interceptor->___callPlugins() #32 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException() #33 /var/www/html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run() #34 {main}