diff --git a/core/modules/mysql/src/Driver/Database/mysql/Connection.php b/core/modules/mysql/src/Driver/Database/mysql/Connection.php index 09f3d4980b9ce6d784ca6b1e89a1672f2055293f..acc087419128b2ca9848d5290b23b97e9da75cec 100644 --- a/core/modules/mysql/src/Driver/Database/mysql/Connection.php +++ b/core/modules/mysql/src/Driver/Database/mysql/Connection.php @@ -152,7 +152,7 @@ public static function open(array &$connection_options = []) { // Show message for socket connection via 'host' option. $message = 'Drupal was attempting to connect to the database server via a socket, but the socket file could not be found.'; $message .= ' A Unix socket file is used if you do not specify a host name or if you specify the special host name localhost.'; - $message .= ' To connect via TPC/IP use an IP address (127.0.0.1 for IPv4) instead of "localhost".'; + $message .= ' To connect via TCP/IP use an IP address (127.0.0.1 for IPv4) instead of "localhost".'; $message .= ' This message normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket file name when trying to connect to the server.'; throw new DatabaseConnectionRefusedException($e->getMessage() . ' [Tip: ' . $message . '] ', $e->getCode(), $e); } diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php index d9e47f150ee6ed87c0f666a90cec2a9dab7f7841..696a5f7a9d07b32fafcded463075c9202482ecda 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerBrokenDatabaseCredentialsTest.php @@ -60,7 +60,7 @@ public function testRequirementsProblem(): void { $this->assertSession()->titleEquals('Requirements problem | Drupal'); $this->assertSession()->pageTextContains('Database settings'); $this->assertSession()->pageTextContains('Resolve all issues below to continue the installation. For help configuring your database server,'); - $this->assertSession()->pageTextContains('[Tip: Drupal was attempting to connect to the database server via a socket, but the socket file could not be found. A Unix socket file is used if you do not specify a host name or if you specify the special host name localhost. To connect via TPC/IP use an IP address (127.0.0.1 for IPv4) instead of "localhost". This message normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket file name when trying to connect to the server.]'); + $this->assertSession()->pageTextContains('[Tip: Drupal was attempting to connect to the database server via a socket, but the socket file could not be found. A Unix socket file is used if you do not specify a host name or if you specify the special host name localhost. To connect via TCP/IP use an IP address (127.0.0.1 for IPv4) instead of "localhost". This message normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket file name when trying to connect to the server.]'); } }