Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseConnectionRefusedException: SQLSTATE[HY000] [2002] Connection refused [Tip: This message normally means that there is no MySQL server running on the system or that you are using an incorrect host name or port number when trying to connect to the server. You should also check that the TCP/IP port you are using has not been blocked by a firewall or port blocking service.] in Drupal\mysql\Driver\Database\mysql\Connection::open() (line 179 of /opt/drupal/core/modules/mysql/src/Driver/Database/mysql/Connection.php).

Drupal\mysql\Driver\Database\mysql\Connection::open(Array) (Line: 460)
Drupal\Core\Database\Database::openConnection('default', 'default') (Line: 191)
Drupal\Core\Database\Database::getConnection('default')
call_user_func_array('Drupal\Core\Database\Database::getConnection', Array) (Line: 77)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'database') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('database', 1) (Line: 226)
Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters(Array) (Line: 60)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'cache.container') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('cache.container') (Line: 576)
Drupal\Core\DrupalKernel->getCachedContainerDefinition() (Line: 965)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 515)
Drupal\Core\DrupalKernel->boot() (Line: 739)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Additional

Error: Class "Drupal\error_page\ErrorPagePhpErrorLogger" not found in Drupal\error_page\ErrorPageErrorHandler::logError() (line 179 of /opt/drupal/modules/contrib/error_page/src/ErrorPageErrorHandler.php).

Drupal\error_page\ErrorPageErrorHandler::logError(Array, 1, Object) (Line: 102)
Drupal\error_page\ErrorPageErrorHandler::handleException(Object)