Look in the includes directory. The file you need to edit is the config.inc.php file. Each variable is pretty descriptive, so it's pretty easy to find the ones related to database info.