function DrupalBoot::bootstrap_drupal_database_validate

8.0.x DrupalBoot.php DrupalBoot::bootstrap_drupal_database_validate()
7.x DrupalBoot.php DrupalBoot::bootstrap_drupal_database_validate()
master DrupalBoot.php DrupalBoot::bootstrap_drupal_database_validate()

Validate the DRUSH_BOOTSTRAP_DRUPAL_DATABASE phase

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

3 methods override DrupalBoot::bootstrap_drupal_database_validate()

File

lib/Drush/Boot/DrupalBoot.php, line 474

Namespace

Drush\Boot

Class

DrupalBoot

Code

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