What I'd do is take a look at the includes/config.inc.php file and make sure the database information is being written to the config file properly. You'll see all of the database settings at the top of that file.