function _drush_bootstrap_drupal_database_validate

6.x bootstrap.inc _drush_bootstrap_drupal_database_validate()
3.x environment.inc _drush_bootstrap_drupal_database_validate()
4.x environment.inc _drush_bootstrap_drupal_database_validate()
5.x bootstrap.inc _drush_bootstrap_drupal_database_validate()

Validate the DRUSH_BOOTSTRAP_DRUPAL_DATABASE phase

Attempt to making a working database connection using the database credentials that were loaded during the previous phase.

File

includes/bootstrap.inc, line 925
Drush bootstrapping code.

Code

function _drush_bootstrap_drupal_database_validate() {
  if (!drush_valid_db_credentials()) {
    return drush_bootstrap_error('DRUSH_DRUPAL_DB_ERROR');
  }
  return TRUE;
}