diff --git a/lib/setup.php b/lib/setup.php
index 8dbb9b62426..dec549d19fe 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -37,18 +37,14 @@
$dbconnected = $db->Connect($CFG->dbhost,$CFG->dbuser,$CFG->dbpass,$CFG->dbname);
}
if (! $dbconnected) {
- echo "";
- echo " Error: Moodle could not connect to the database. It's possible the database itself is just not working at the moment. The admin should
- also check that the database details have been correctly specified in config.php Database host: $CFG->dbhost The admin should also try setting this in config.php: $"."CFG->dbpersist = false;
";
- echo "Database name: $CFG->dbname
";
- echo "Database user: $CFG->dbuser
";
- if (!isset($CFG->dbpersist)) {
- echo "
| ';
+ echo ' Error: Database connection failed. '; + echo 'It is possible that the database is overloaded or otherwise not running properly. '; + echo 'The site administrator should also check that the database details have been correctly specified in config.php '; + echo ' |