PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'root', 'E-media42000', Array) #1 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(494): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(274): Zend_Db_Adapter_Abstract->beginTransaction() #5 /var/www/age/vendor/magento/framework/EntityManager/Operation/Create.php(107): Magento\Framework\DB\Adapter\Pdo\Mysql->beginTransaction() #6 /var/www/age/vendor/magento/framework/EntityManager/EntityManager.php(96): Magento\Framework\EntityManager\Operation\Create->execute(Object(Mirasvit\SearchReport\Model\Log), Array) #7 /var/www/age/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(85): Magento\Framework\EntityManager\EntityManager->save(Object(Mirasvit\SearchReport\Model\Log)) #8 /var/www/age/app/code/Mirasvit/SearchReport/Service/LogService.php(66): Mirasvit\SearchReport\Repository\LogRepository->save(Object(Mirasvit\SearchReport\Model\Log)) #9 /var/www/age/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(89): Mirasvit\SearchReport\Service\LogService->logQuery('cables conduits...', 0, 'catalogsearch_r...', NULL, NULL) #10 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #11 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #12 /var/www/age/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #13 /var/www/age/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #14 /var/www/age/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #15 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #16 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #17 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #18 /var/www/age/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #19 /var/www/age/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #20 /var/www/age/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #21 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(494): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(274): Zend_Db_Adapter_Abstract->beginTransaction() #4 /var/www/age/vendor/magento/framework/EntityManager/Operation/Create.php(107): Magento\Framework\DB\Adapter\Pdo\Mysql->beginTransaction() #5 /var/www/age/vendor/magento/framework/EntityManager/EntityManager.php(96): Magento\Framework\EntityManager\Operation\Create->execute(Object(Mirasvit\SearchReport\Model\Log), Array) #6 /var/www/age/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(85): Magento\Framework\EntityManager\EntityManager->save(Object(Mirasvit\SearchReport\Model\Log)) #7 /var/www/age/app/code/Mirasvit/SearchReport/Service/LogService.php(66): Mirasvit\SearchReport\Repository\LogRepository->save(Object(Mirasvit\SearchReport\Model\Log)) #8 /var/www/age/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(89): Mirasvit\SearchReport\Service\LogService->logQuery('cables conduits...', 0, 'catalogsearch_r...', NULL, NULL) #9 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #10 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #11 /var/www/age/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #12 /var/www/age/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #13 /var/www/age/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #14 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #15 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #16 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #17 /var/www/age/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #18 /var/www/age/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #19 /var/www/age/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #20 {main}