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.

"; - echo "

It's possible the database itself is just not working at the moment.

"; - echo "

The admin should - also check that the database details have been correctly specified in config.php

"; - echo "

Database host: $CFG->dbhost
"; - echo "Database name: $CFG->dbname
"; - echo "Database user: $CFG->dbuser
"; - if (!isset($CFG->dbpersist)) { - echo "

The admin should also try setting this in config.php: $"."CFG->dbpersist = false;

"; - } - echo "
"; + echo ''; + 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 '
'; die; }