Config your Drupal 7 settings.php to work with Drush

When installing a local host instance of your Drupal 7 website, Drush likes to see instead of localhost as the name of the host.  You can get the best of both worlds by using the following in the settings.php file:

$databases['default']['default'] = array(
      'driver' => 'mysql',
      'database' => 'wilbur_us',
      'username' => 'wilbur_us',
      'password' => 'password',
      'host' => php_sapi_name() == 'cli' ? '' : 'localhost',
      'prefix' => '',

Notice the 'host' line, this sets the host file based on the php command in that line.  This will give you localhost or depending on what you need.