PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'koshmart_admin', '$jCuRr7p6FhtJ9W...', Array) #1 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote(Array, NULL) #5 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} I...', Array, NULL, NULL) #6 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} I...', Array) #7 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2976): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} I...', Array, '`main_table`.`w...') #8 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`main_table`.`w...', Array) #9 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`main_table`.`w...', Array) #10 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('main_table.webs...', Array) #11 /home/koshmart/public_html/vendor/magento/module-store/Model/ResourceModel/Store/Collection.php(118): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('main_table.webs...', Array) #12 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(424): Magento\Store\Model\ResourceModel\Store\Collection->addWebsiteFilter('10') #13 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(141): Magento\Store\Model\Website->getStoreCollection() #14 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(385): Magento\Store\Model\Website\Interceptor->getStoreCollection() #15 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(435): Magento\Store\Model\Website->_loadStores() #16 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(154): Magento\Store\Model\Website->getStores() #17 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(646): Magento\Store\Model\Website\Interceptor->getStores() #18 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(375): Magento\Store\Model\Website->getDefaultStore() #19 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/CacheControl.php(325): Magento\Store\Model\Website\Interceptor->getDefaultStore() #20 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/CacheControl.php(242): Litespeed\Litemage\Model\CacheControl->checkCacheVary() #21 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/App/Response/HttpPlugin.php(44): Litespeed\Litemage\Model\CacheControl->setCacheControlHeaders(Object(Magento\Framework\App\Response\Http\Interceptor)) #22 /home/koshmart/public_html/vendor/magento/framework/Interception/Interceptor.php(121): Litespeed\Litemage\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #23 /home/koshmart/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #24 /home/koshmart/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #25 /home/koshmart/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #26 /home/koshmart/public_html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #27 /home/koshmart/public_html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #28 /home/koshmart/public_html/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #29 /home/koshmart/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #30 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /home/koshmart/public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote(Array, NULL) #4 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1489): Zend_Db_Adapter_Abstract->quoteInto('{{fieldName}} I...', Array, NULL, NULL) #5 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3002): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('{{fieldName}} I...', Array) #6 /home/koshmart/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2976): Magento\Framework\DB\Adapter\Pdo\Mysql->_prepareQuotedSqlCondition('{{fieldName}} I...', Array, '`main_table`.`w...') #7 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(485): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareSqlCondition('`main_table`.`w...', Array) #8 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(416): Magento\Framework\Data\Collection\AbstractDb->_getConditionSql('`main_table`.`w...', Array) #9 /home/koshmart/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(398): Magento\Framework\Data\Collection\AbstractDb->_translateCondition('main_table.webs...', Array) #10 /home/koshmart/public_html/vendor/magento/module-store/Model/ResourceModel/Store/Collection.php(118): Magento\Framework\Data\Collection\AbstractDb->addFieldToFilter('main_table.webs...', Array) #11 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(424): Magento\Store\Model\ResourceModel\Store\Collection->addWebsiteFilter('10') #12 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(141): Magento\Store\Model\Website->getStoreCollection() #13 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(385): Magento\Store\Model\Website\Interceptor->getStoreCollection() #14 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(435): Magento\Store\Model\Website->_loadStores() #15 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(154): Magento\Store\Model\Website->getStores() #16 /home/koshmart/public_html/vendor/magento/module-store/Model/Website.php(646): Magento\Store\Model\Website\Interceptor->getStores() #17 /home/koshmart/public_html/generated/code/Magento/Store/Model/Website/Interceptor.php(375): Magento\Store\Model\Website->getDefaultStore() #18 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/CacheControl.php(325): Magento\Store\Model\Website\Interceptor->getDefaultStore() #19 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/CacheControl.php(242): Litespeed\Litemage\Model\CacheControl->checkCacheVary() #20 /home/koshmart/public_html/app/code/Litespeed/Litemage/Model/App/Response/HttpPlugin.php(44): Litespeed\Litemage\Model\CacheControl->setCacheControlHeaders(Object(Magento\Framework\App\Response\Http\Interceptor)) #21 /home/koshmart/public_html/vendor/magento/framework/Interception/Interceptor.php(121): Litespeed\Litemage\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #22 /home/koshmart/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #23 /home/koshmart/public_html/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #24 /home/koshmart/public_html/vendor/magento/framework/App/ExceptionHandler.php(103): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #25 /home/koshmart/public_html/vendor/magento/framework/App/ExceptionHandler.php(70): Magento\Framework\App\ExceptionHandler->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor)) #26 /home/koshmart/public_html/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\ExceptionHandler->handle(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception), Object(Magento\Framework\App\Response\Http\Interceptor), Object(Magento\Framework\App\Request\Http)) #27 /home/koshmart/public_html/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #28 /home/koshmart/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #29 {main}