Remove FLUSH PRIVILEGES from mysql_setpermission
FLUSH PRIVILEGES hasn't been needed for very many years.
This commit is contained in:
parent
683f91a287
commit
c45aeeab38
@ -283,7 +283,6 @@ sub addall {
|
|||||||
$sth = $dbh->do("REVOKE ALL ON $db.* FROM \'$user\'\@\'$host\'") || die $dbh->errstr;
|
$sth = $dbh->do("REVOKE ALL ON $db.* FROM \'$user\'\@\'$host\'") || die $dbh->errstr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$dbh->do("FLUSH PRIVILEGES") || print STDERR "Can't flush privileges\n";
|
|
||||||
print "Everything is inserted and mysql privileges have been reloaded.\n\n";
|
print "Everything is inserted and mysql privileges have been reloaded.\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user