Installation help

 
 
Picture of yashar dastafshar
Error: Database connection failed
 

Dear all,

I am a new user and I just finished installing moodle to ubuntu 10.04 , when I try to access it via my host, i get the following error: and spend some time in the forum and goodle and couldnt fix. Does any one have any ideas or can instruct me to fix it? I m also new with ubuntu and all the technical things.. smile

 

Error: Database connection failed.

It is possible that the database is overloaded or otherwise not running properly.

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

 
Average of ratings: -
Gmads
Re: Error: Database connection failed
Group Particularly helpful MoodlersGroup Testers

Hi Yashar,

Did you read: Step-by-step Install Guide for Ubuntu and Installation on Ubuntu using Git?

Start by checking your web server and database server error log files.

 
Average of ratings: -
Picture of yashar dastafshar
Re: Error: Database connection failed
 

Thanks for your response Guillermo,

I followed the instructions, how do I check for error log files? Is there a command?

 

Thanks

 
Average of ratings: -
Gmads
Re: Error: Database connection failed
Group Particularly helpful MoodlersGroup Testers

I'm not familiar with the directory structure in Ubuntu, but it seems that they (error.log & mysql.err) could be in /var/log/

To display the last 20 lines of the error.log file you could use the tail command:

tail error.log -n 20

 
Average of ratings: -