General help

Loading database error

 
 
Picture of Jerin das
Loading database error
 

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

 


 
Average of ratings: -
moi!!! it is what is is...
Re: Loading database error
Group Documentation writersGroup Particularly helpful Moodlers

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.)  

 
Average of ratings: -
Picture of Jerin das
Re: Loading database error
 

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

 
Average of ratings: -
Picture of Jerin das
Re: Loading database error
 

Hi,

My problem solved.Its related to db error.

Thanks

Jerin

 
Average of ratings: -