Commit c59dce00 authored by anarcat's avatar anarcat Committed by anarcat

do not try to connect to the mysql database to see if credentials are

valid

first, it's not necessarily available. second, we have proper failure
modes anyways, so this check isn't useful
parent ee0c6de7
......@@ -24,14 +24,7 @@ function provision_db_connect() {
drush_set_error('PROVISION_MASTER_DB_FAILED', dt('Could not connect to the master database server (%err).', array('%err' => mysql_error())), 'error');
}
else {
$success = @mysql_select_db('mysql', $connection);
if ($success) {
_provision_db_connection($connection);
}
else {
drush_set_error('PROVISION_MASTER_DB_FAILED', dt('Could not select the mysql database (%err).', array('%err' => mysql_error())), 'error');
return FALSE;
}
_provision_db_connection($connection);
}
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment