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 127.0.0.1 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' ? '127.0.0.1' : '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 127.0.0.1 depending on what you need.