PHP error after version upgrade

Created on 16 January 2025, 3 months ago

I have upgraded the PHP version from 8.1.2 to version 8.2.27 for upgrading the Drupal version to 10.3.9
Current Drupal version : 10.2.2 But after upgrading the PHP version getting error like below:

The website encountered an unexpected error. Try again later.
Drupal\Core\Database\DatabaseConnectionRefusedException: SQLSTATE[HY000] [2002] Cannot connect to MySQL using SSL [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 201 of /var/d8/web/core/modules/mysql/src/Driver/Database/mysql/Connection.php).
Drupal\mysql\Driver\Database\mysql\Connection::open() (Line: 464)
Drupal\Core\Database\Database::openConnection() (Line: 195)
Drupal\Core\Database\Database::getConnection()
call_user_func_array() (Line: 79)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 219)
Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters() (Line: 62)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 554)
Drupal\Core\DrupalKernel->getCachedContainerDefinition() (Line: 928)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 494)
Drupal\Core\DrupalKernel->boot() (Line: 702)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Anyone please help me to sort this error?

💬 Support request
Status

Active

Version

10.3

Component

other

Created by

🇮🇳India Toby_toby

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024