diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
index d1bac8c24e..dfac0158b7 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
@@ -157,8 +157,8 @@ protected function connect() {
}
}
else {
- // Database connection failed for some other reason than the database
- // non-existent.
+ // Database connection failed for some other reason than a non-existent
+ // database.
$this->fail(t('Failed to connect to your database server. The server reports the following message: %error.
- Is the database server running?
- Does the database exist or does the database user have sufficient privileges to create the database?
- Have you entered the correct database name?
- Have you entered the correct username and password?
- Have you entered the correct database hostname and port number?
', ['%error' => $e->getMessage()]));
return FALSE;
}
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
index 301a5f0093..1c07dfaf38 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
@@ -107,8 +107,8 @@ protected function connect() {
}
}
else {
- // Database connection failed for some other reason than the database
- // non-existent.
+ // Database connection failed for some other reason than a non-existent
+ // database.
$this->fail(t('Failed to connect to your database server. The server reports the following message: %error.- Is the database server running?
- Does the database exist, and have you entered the correct database name?
- Have you entered the correct username and password?
- Have you entered the correct database hostname and port number?
', ['%error' => $e->getMessage()]));
return FALSE;
}
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php
index 36f86e380d..1acb119417 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php
@@ -103,8 +103,8 @@ protected function connect() {
}
}
else {
- // Database connection failed for some other reason than the database
- // non-existent.
+ // Database connection failed for some other reason than a non-existent
+ // database.
$this->fail(t('Failed to connect to database. The database engine reports the following message: %error.- Does the database file exist?
- Does web server have permission to write to the database file?
Does the web server have permission to write to the directory the database file should be created in?
', ['%error' => $e->getMessage()]));
return FALSE;
}