Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46829

Re: Error: Database connection failed

$
0
0
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)?


Viewing all articles
Browse latest Browse all 46829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>