diff --git a/db/db.drush.inc b/db/db.drush.inc index 04e3eac04d91edbcd88a65b532ab637e8bd52850..d35359bfb1222f15ebbb0f8027a525b989d54777 100644 --- a/db/db.drush.inc +++ b/db/db.drush.inc @@ -185,7 +185,7 @@ class provisionService_db extends provisionService { function generate_site_credentials() { $creds = array(); // replace with service type - $db_type = drush_get_option('db_type', 'mysql'); + $db_type = drush_get_option('db_type', function_exists('mysqli_connect') ? 'mysqli' : 'mysql'); // As of Drupal 7 there is no more mysqli type if (drush_drupal_major_version() >= 7) { $db_type = ($db_type == 'mysqli') ? 'mysql' : $db_type;