PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'ftpbabya_us', 'Db2!babya', Array) #1 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(545): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(580): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `t`.* FR...', Array) #5 /var/www/vhosts/babyactive.pt/httpdocs/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/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Db/ReadRow.php(61): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select)) #7 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Operation/Read/ReadMain.php(63): Magento\Framework\EntityManager\Db\ReadRow->execute('Mirasvit\\Search...', '0') #8 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Operation/Read.php(108): Magento\Framework\EntityManager\Operation\Read\ReadMain->execute(Object(Mirasvit\SearchReport\Model\Log), '0') #9 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute(Object(Mirasvit\SearchReport\Model\Log), '0', Array) #10 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(60): Magento\Framework\EntityManager\EntityManager->load(Object(Mirasvit\SearchReport\Model\Log), '0') #11 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Service/LogService.php(74): Mirasvit\SearchReport\Repository\LogRepository->get('0') #12 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(96): Mirasvit\SearchReport\Service\LogService->logClick('0') #13 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #14 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #15 /var/www/vhosts/babyactive.pt/httpdocs/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #16 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #17 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #18 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #19 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #20 /var/www/vhosts/babyactive.pt/httpdocs/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/vhosts/babyactive.pt/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #22 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #23 /var/www/vhosts/babyactive.pt/httpdocs/index.php(67): 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/vhosts/babyactive.pt/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(398): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(545): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(580): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `t`.* FR...', Array) #4 /var/www/vhosts/babyactive.pt/httpdocs/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/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Db/ReadRow.php(61): Zend_Db_Adapter_Abstract->fetchRow(Object(Magento\Framework\DB\Select)) #6 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Operation/Read/ReadMain.php(63): Magento\Framework\EntityManager\Db\ReadRow->execute('Mirasvit\\Search...', '0') #7 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/Operation/Read.php(108): Magento\Framework\EntityManager\Operation\Read\ReadMain->execute(Object(Mirasvit\SearchReport\Model\Log), '0') #8 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute(Object(Mirasvit\SearchReport\Model\Log), '0', Array) #9 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Repository/LogRepository.php(60): Magento\Framework\EntityManager\EntityManager->load(Object(Mirasvit\SearchReport\Model\Log), '0') #10 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Service/LogService.php(74): Mirasvit\SearchReport\Repository\LogRepository->get('0') #11 /var/www/vhosts/babyactive.pt/httpdocs/app/code/Mirasvit/SearchReport/Plugin/ResponsePlugin.php(96): Mirasvit\SearchReport\Service\LogService->logClick('0') #12 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(121): Mirasvit\SearchReport\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #13 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #14 /var/www/vhosts/babyactive.pt/httpdocs/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(117): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #15 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Http.php(185): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #16 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Http.php(156): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #17 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #18 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #19 /var/www/vhosts/babyactive.pt/httpdocs/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/vhosts/babyactive.pt/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #21 /var/www/vhosts/babyactive.pt/httpdocs/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception)) #22 /var/www/vhosts/babyactive.pt/httpdocs/index.php(67): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #23 {main}