Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33 Stack trace: #0 /var/www/html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(33): PDO->__construct('mysql:host=leha...', 'pimcore', Object(SensitiveParameterValue), Array) #1 /var/www/html/vendor/doctrine/dbal/src/Connection.php(378): Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(Object(SensitiveParameterValue)) #2 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1655): Doctrine\DBAL\Connection->connect() #3 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1082): Doctrine\DBAL\Connection->getWrappedConnection() #4 /var/www/html/vendor/doctrine/dbal/src/Connection.php(588): Doctrine\DBAL\Connection->executeQuery('SELECT id FROM ...', Array, Array) #5 /var/www/html/vendor/pimcore/pimcore/models/Document/Dao.php(63): Doctrine\DBAL\Connection->fetchAssociative('SELECT id FROM ...', Array) #6 /var/www/html/vendor/pimcore/pimcore/models/Document.php(156): Pimcore\Model\Document\Dao->getByPath('/main/professio...') #7 /var/www/html/vendor/pimcore/pimcore/models/Document/Service.php(486): Pimcore\Model\Document::getByPath('/main/professio...') #8 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(145): Pimcore\Model\Document\Service->getNearestDocumentByPath('/main/professio...', false, Array) #9 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(101): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->determineErrorPath(Object(Symfony\Component\HttpFoundation\Request)) #10 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(77): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->handleErrorPage(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #11 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(260): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #12 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #13 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #14 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(239): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...') #15 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object(Doctrine\DBAL\Exception\ConnectionException), Object(Symfony\Component\HttpFoundation\Request), 1) #16 /var/www/html/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /var/www/html/public/index.php(36): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #18 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 Stack trace: #0 /var/www/html/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(40): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException)) #1 /var/www/html/vendor/doctrine/dbal/src/Connection.php(378): Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(Object(SensitiveParameterValue)) #2 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1655): Doctrine\DBAL\Connection->connect() #3 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1082): Doctrine\DBAL\Connection->getWrappedConnection() #4 /var/www/html/vendor/doctrine/dbal/src/Connection.php(588): Doctrine\DBAL\Connection->executeQuery('SELECT id FROM ...', Array, Array) #5 /var/www/html/vendor/pimcore/pimcore/models/Document/Dao.php(63): Doctrine\DBAL\Connection->fetchAssociative('SELECT id FROM ...', Array) #6 /var/www/html/vendor/pimcore/pimcore/models/Document.php(156): Pimcore\Model\Document\Dao->getByPath('/main/professio...') #7 /var/www/html/vendor/pimcore/pimcore/models/Document/Service.php(486): Pimcore\Model\Document::getByPath('/main/professio...') #8 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(145): Pimcore\Model\Document\Service->getNearestDocumentByPath('/main/professio...', false, Array) #9 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(101): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->determineErrorPath(Object(Symfony\Component\HttpFoundation\Request)) #10 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(77): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->handleErrorPage(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #11 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(260): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #12 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #13 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #14 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(239): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...') #15 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object(Doctrine\DBAL\Exception\ConnectionException), Object(Symfony\Component\HttpFoundation\Request), 1) #16 /var/www/html/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /var/www/html/public/index.php(36): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #18 {main} Next Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101 Stack trace: #0 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1939): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(Object(Doctrine\DBAL\Driver\PDO\Exception), NULL) #1 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1887): Doctrine\DBAL\Connection->handleDriverException(Object(Doctrine\DBAL\Driver\PDO\Exception), NULL) #2 /var/www/html/vendor/doctrine/dbal/src/Connection.php(380): Doctrine\DBAL\Connection->convertException(Object(Doctrine\DBAL\Driver\PDO\Exception)) #3 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1655): Doctrine\DBAL\Connection->connect() #4 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1082): Doctrine\DBAL\Connection->getWrappedConnection() #5 /var/www/html/vendor/doctrine/dbal/src/Connection.php(588): Doctrine\DBAL\Connection->executeQuery('SELECT id FROM ...', Array, Array) #6 /var/www/html/vendor/pimcore/pimcore/models/Document/Dao.php(63): Doctrine\DBAL\Connection->fetchAssociative('SELECT id FROM ...', Array) #7 /var/www/html/vendor/pimcore/pimcore/models/Document.php(156): Pimcore\Model\Document\Dao->getByPath('/main/professio...') #8 /var/www/html/vendor/pimcore/pimcore/models/Document/Service.php(486): Pimcore\Model\Document::getByPath('/main/professio...') #9 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(145): Pimcore\Model\Document\Service->getNearestDocumentByPath('/main/professio...', false, Array) #10 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(101): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->determineErrorPath(Object(Symfony\Component\HttpFoundation\Request)) #11 /var/www/html/vendor/pimcore/pimcore/bundles/CoreBundle/src/EventListener/ResponseExceptionListener.php(77): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->handleErrorPage(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #12 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(260): Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener->onKernelException(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #13 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #14 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\ExceptionEvent)) #15 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(239): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...') #16 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object(Doctrine\DBAL\Exception\ConnectionException), Object(Symfony\Component\HttpFoundation\Request), 1) #17 /var/www/html/vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /var/www/html/public/index.php(36): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main} thrown in /var/www/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php on line 101