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/framework/DB/Adapter/Pdo/Mysql.php(570): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `t`.* FR...', Array) #5 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #6 /var/www/age/vendor/magento/framework/EntityManager/Db/ReadRow.php(61): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select)) #7 /var/www/age/vendor/magento/framework/EntityManager/Operation/Read/ReadMain.php(63): Magento\Framework\EntityManager\Db\ReadRow->execute('Mirasvit\\Search...', NULL) #8 /var/www/age/vendor/magento/framework/EntityManager/Operation/Read.php(108): Magento\Framework\EntityManager\Operation\Read\ReadMain->execute(Object(Mirasvit\SearchReport\Model\Log), NULL) #9 /var/www/age/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute(Object(Mirasvit\SearchReport\Model\Log), NULL, Array) #10 /var/www/age/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(60): Magento\Framework\EntityManager\EntityManager->load(Object(Mirasvit\SearchReport\Model\Log), NULL) #11 /var/www/age/app/code/Mirasvit/SearchReport/Service/LogService.php(74): Mirasvit\SearchReport\Repository\LogRepository->get(NULL) #12 /var/www/age/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(96): Mirasvit\SearchReport\Service\LogService->logClick(NULL) #13 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #14 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #15 /var/www/age/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #16 /var/www/age/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #17 /var/www/age/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #18 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #19 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #20 /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(Exception)) #21 /var/www/age/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #22 /var/www/age/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #23 /var/www/age/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #24 {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/framework/DB/Adapter/Pdo/Mysql.php(570): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/age/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `t`.* FR...', Array) #4 /var/www/age/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(756): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #5 /var/www/age/vendor/magento/framework/EntityManager/Db/ReadRow.php(61): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select)) #6 /var/www/age/vendor/magento/framework/EntityManager/Operation/Read/ReadMain.php(63): Magento\Framework\EntityManager\Db\ReadRow->execute('Mirasvit\\Search...', NULL) #7 /var/www/age/vendor/magento/framework/EntityManager/Operation/Read.php(108): Magento\Framework\EntityManager\Operation\Read\ReadMain->execute(Object(Mirasvit\SearchReport\Model\Log), NULL) #8 /var/www/age/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute(Object(Mirasvit\SearchReport\Model\Log), NULL, Array) #9 /var/www/age/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(60): Magento\Framework\EntityManager\EntityManager->load(Object(Mirasvit\SearchReport\Model\Log), NULL) #10 /var/www/age/app/code/Mirasvit/SearchReport/Service/LogService.php(74): Mirasvit\SearchReport\Repository\LogRepository->get(NULL) #11 /var/www/age/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(96): Mirasvit\SearchReport\Service\LogService->logClick(NULL) #12 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #13 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #14 /var/www/age/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #15 /var/www/age/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #16 /var/www/age/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #17 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #18 /var/www/age/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #19 /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(Exception)) #20 /var/www/age/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #21 /var/www/age/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #22 /var/www/age/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #23 {main}