Commit 0f051e3c authored by anarcat's avatar anarcat Committed by Antoine Beaupre
Browse files

do not flush privileges: it's not required when you use GRANT/REVOKE, and...

do not flush privileges: it's not required when you use GRANT/REVOKE, and requires unnecessary permissions
parent 1ee65ab6
...@@ -61,7 +61,6 @@ function _provision_mysql_new_site_db($db_name, $db_user, $db_passwd, $db_grant_ ...@@ -61,7 +61,6 @@ function _provision_mysql_new_site_db($db_name, $db_user, $db_passwd, $db_grant_
if (!_provision_mysql_grant($db_name, $db_user, $db_passwd, $db_grant_host)) { if (!_provision_mysql_grant($db_name, $db_user, $db_passwd, $db_grant_host)) {
drush_log("Could not GRANT user access.", 'warning'); drush_log("Could not GRANT user access.", 'warning');
} }
_provision_mysql_flush_privileges();
$status = _provision_mysql_database_exists($db_name); $status = _provision_mysql_database_exists($db_name);
...@@ -95,7 +94,6 @@ function _provision_mysql_destroy_site_db($db_name, $db_user, $db_passwd, $db_gr ...@@ -95,7 +94,6 @@ function _provision_mysql_destroy_site_db($db_name, $db_user, $db_passwd, $db_gr
} }
drush_log(dt("Revoking privileges of %user@%client from %database", array('%user' => $db_user, '%client' => $db_grant_host, '%database' => $db_name))); drush_log(dt("Revoking privileges of %user@%client from %database", array('%user' => $db_user, '%client' => $db_grant_host, '%database' => $db_name)));
_provision_mysql_flush_privileges();
if (!_provision_mysql_revoke($db_name, $db_user, $db_grant_host)) { if (!_provision_mysql_revoke($db_name, $db_user, $db_grant_host)) {
drush_log(dt("Failed to revoke user privileges"), 'warning'); drush_log(dt("Failed to revoke user privileges"), 'warning');
} }
......
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