Loading database error

Loading database error

by Jerin das -
Number of replies: 3

Hi ,

   When iam tying to load my site in  local server, i got an error.The image attached will expalin all .My config.php details shown below.My moodle version is 2.0.2.

<?php  // Moodle configuration file

unset($CFG);
global $CFG;

$CFG = new stdClass();
$CFG->dbtype    = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'xxxxxxxxxxx';
$CFG->dbuser    = 'root';
$CFG->dbpass    = '';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbsocket' => 0,
);



$CFG->wwwroot   = 'http://xxxxx/xxxxxx';
$CFG->dataroot  = 'xxxxxx';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

$CFG->passwordsaltmain = 'xxxxxxxxxxxxx';

require_once(dirname(__FILE__) . '/lib/setup.php');



// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
?>

 

If anybody know to overcome this situation, please help me

Thanks in advance

 

Attachment error.JPG
Average of ratings: -
In reply to Jerin das

Re: Loading database error

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Should you not have a value in CFG->dbpass = ''; (My server has died so I cannot look, right now. I am pretty certain that I have a value on that line in my config.php file.)  

In reply to Colin Fraser

Re: Loading database error

by Jerin das -

Hi,

Thanks for your reply Collin. Actullly I always put CFG->dbpass as null and $CFG->dbuser as 'root'. So I think that's not the problem.

Thanks

Jerin

In reply to Jerin das

Re: Loading database error

by Jerin das -

Hi,

My problem solved.Its related to db error.

Thanks

Jerin