by Huei Tan.
Also you can try edit config.php
the following:
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '';
$CFG->dbpersist = true;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\Program Files\EasyPHP\www\moodle';
$CFG->dataroot = 'C:\moodledata';
i just provide a possible work, maybe can't solve your problem