by Howard Miller.
Possibilities...
- Is your database actually running (what happens if you type mysql -u root -p at the command line)?
- How did you create your database?
- Did you remember the GRANT command? Did you do it right so you have a hostname ('localhost' if on the same server), username and password?
- Where is your database server? If it's on a different server to your web server you need to be careful with the GRANT command
- Did you definitely enter the correct database information when you set up Moodle? Check your config.php file carefully.
- Do you have the database driver for PHP installed? (Not a centos user but something like, yum install php-mysql)?