Database error

Status
Not open for further replies.

jc12345123

New Member
Messages
4
Reaction score
0
Points
0
I have a problem with my account it says:
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


I've Installed moodle on my site. I've search the forum for solutions but I cannot find one. if there is one please help me. Thank you.
 
Last edited:

jc12345123

New Member
Messages
4
Reaction score
0
Points
0
Sir is this correct?
<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'projman_moodledb';
$CFG->dbuser = '**********';
$CFG->dbpass = '***********';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';

$CFG->wwwroot = 'http://projectmanagement.x10hosting.com';
$CFG->dirroot = '/home/projman/public_html';
$CFG->dataroot = '/home/projman/moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

If this is the correct configuration I've updated the config.php exactly like this
but I still cannot connect to my site.It displays the same error.
If this is incorrect please help me provide the correct configuration.
Thank you very much for your help.
 
Last edited:

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Modify your reply! DO NOT SHOW YOUR PASSWORD! EVERYBODY can see it in this post!
 

soundmandubs

Member
Prime Account
Messages
146
Reaction score
0
Points
16
Re: Database error / Site returns a blank page

I think i may be affected by the migration taking place right now and would like to know what i can do.
I have been able to access my site since 7pm 29th Jan 2010 uk time. The site returns a blank page. I am able to login to the control panel and MySQLAdmin but unable to ftp or access my web disc. I am very concerned and would like to know when service will resume and if there is a timescale. http://trillionaire.x10hosting.com/socialnetwork/
 
Last edited:
Status
Not open for further replies.
Top