After a recent instalation of Moodle. The following is the error message that is received:
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: localhost
Database name: moodle
Database user: username
I have looked at the config.php and cannot identify any problems.