Note: This post was written for a very old version of Drupal and may only be relevant for a few people but I’m leaving it here for posterity. If your installing Drupal (even on localhost) if you get stuck on the Database Configuration page open ./sites/default/settings.php and change the $db_url variable to your database settings.