PDOException: SQLSTATE[HY000] [2002] No such file or directory in /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'root', 'Ip08X3chN6FHEus...', Array) #1 /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(575): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(613): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `gen_cus...', Array) #5 /home/magento/web/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(128): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #6 /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array) #7 /home/magento/web/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1571): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select), Array, 2) #8 /home/magento/web/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(990): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchRow(Object(Magento\Framework\DB\Select)) #9 /home/magento/web/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(505): Magento\Eav\Model\Entity\AbstractEntity->load(Object(Magento\Customer\Model\Customer\Interceptor), NULL, NULL) #10 /home/magento/web/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Customer\Model\ResourceModel\Customer\Interceptor->load(Object(Magento\Customer\Model\Customer\Interceptor), NULL, NULL) #11 /home/magento/web/generated/code/Magento/Customer/Model/Customer/Interceptor.php(1051): Magento\Framework\Model\AbstractModel->load(NULL, NULL) #12 /home/magento/web/vendor/magento/module-customer/Model/Session.php(307): Magento\Customer\Model\Customer\Interceptor->load(NULL) #13 /home/magento/web/generated/code/Magento/Customer/Model/Session/Interceptor.php(102): Magento\Customer\Model\Session->getCustomer() #14 /home/magento/web/app/code/MageWorx/CustomerPrices/Helper/Customer.php(86): Magento\Customer\Model\Session\Interceptor->getCustomer() #15 /home/magento/web/app/code/MageWorx/CustomerPrices/Model/CacheIdentifierModifier.php(45): MageWorx\CustomerPrices\Helper\Customer->getCurrentCustomerId() #16 /home/magento/web/app/code/MageWorx/CustomerPrices/Plugin/Cache/ChangeCacheIdentifierPlugin.php(37): MageWorx\CustomerPrices\Model\CacheIdentifierModifier->addCustomerIdToCacheIfNeeded(Array) #17 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(146): MageWorx\CustomerPrices\Plugin\Cache\ChangeCacheIdentifierPlugin->afterGetData(Object(Magento\Framework\App\Http\Context\Interceptor), Array) #18 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #19 /home/magento/web/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(65): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getData', Array, Array) #20 /home/magento/web/vendor/magento/framework/App/Http/Context.php(113): Magento\Framework\App\Http\Context\Interceptor->getData() #21 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http\Context->getVaryString() #22 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Context\Interceptor->___callParent('getVaryString', Array) #23 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #24 /home/magento/web/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #25 /home/magento/web/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #26 /home/magento/web/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #27 /home/magento/web/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #28 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #29 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #30 /home/magento/web/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #31 /home/magento/web/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #32 /home/magento/web/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #33 /home/magento/web/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #34 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #35 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #36 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #37 /home/magento/web/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #38 /home/magento/web/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #39 /home/magento/web/index.php(41): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #40 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(575): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /home/magento/web/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(613): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `gen_cus...', Array) #4 /home/magento/web/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(128): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #5 /home/magento/web/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query(Object(Magento\Framework\DB\Select), Array) #6 /home/magento/web/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(1571): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select), Array, 2) #7 /home/magento/web/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(990): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchRow(Object(Magento\Framework\DB\Select)) #8 /home/magento/web/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(505): Magento\Eav\Model\Entity\AbstractEntity->load(Object(Magento\Customer\Model\Customer\Interceptor), NULL, NULL) #9 /home/magento/web/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Customer\Model\ResourceModel\Customer\Interceptor->load(Object(Magento\Customer\Model\Customer\Interceptor), NULL, NULL) #10 /home/magento/web/generated/code/Magento/Customer/Model/Customer/Interceptor.php(1051): Magento\Framework\Model\AbstractModel->load(NULL, NULL) #11 /home/magento/web/vendor/magento/module-customer/Model/Session.php(307): Magento\Customer\Model\Customer\Interceptor->load(NULL) #12 /home/magento/web/generated/code/Magento/Customer/Model/Session/Interceptor.php(102): Magento\Customer\Model\Session->getCustomer() #13 /home/magento/web/app/code/MageWorx/CustomerPrices/Helper/Customer.php(86): Magento\Customer\Model\Session\Interceptor->getCustomer() #14 /home/magento/web/app/code/MageWorx/CustomerPrices/Model/CacheIdentifierModifier.php(45): MageWorx\CustomerPrices\Helper\Customer->getCurrentCustomerId() #15 /home/magento/web/app/code/MageWorx/CustomerPrices/Plugin/Cache/ChangeCacheIdentifierPlugin.php(37): MageWorx\CustomerPrices\Model\CacheIdentifierModifier->addCustomerIdToCacheIfNeeded(Array) #16 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(146): MageWorx\CustomerPrices\Plugin\Cache\ChangeCacheIdentifierPlugin->afterGetData(Object(Magento\Framework\App\Http\Context\Interceptor), Array) #17 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #18 /home/magento/web/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(65): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getData', Array, Array) #19 /home/magento/web/vendor/magento/framework/App/Http/Context.php(113): Magento\Framework\App\Http\Context\Interceptor->getData() #20 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http\Context->getVaryString() #21 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Context\Interceptor->___callParent('getVaryString', Array) #22 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #23 /home/magento/web/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(78): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #24 /home/magento/web/vendor/magento/framework/App/Response/Http.php(108): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #25 /home/magento/web/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(37): Magento\Framework\App\Response\Http->sendVary() #26 /home/magento/web/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http\Interceptor->sendVary() #27 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #28 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #29 /home/magento/web/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #30 /home/magento/web/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #31 /home/magento/web/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #32 /home/magento/web/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #33 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #34 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #35 /home/magento/web/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #36 /home/magento/web/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #37 /home/magento/web/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #38 /home/magento/web/index.php(41): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #39 {main}