Skip to content

Commit c45aeea

Browse files
mkulik-rhgrooverdan
authored andcommitted
Remove FLUSH PRIVILEGES from mysql_setpermission
FLUSH PRIVILEGES hasn't been needed for very many years.
1 parent 683f91a commit c45aeea

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/mysql_setpermission.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ sub addall {
283283
$sth = $dbh->do("REVOKE ALL ON $db.* FROM \'$user\'\@\'$host\'") || die $dbh->errstr;
284284
}
285285
}
286-
$dbh->do("FLUSH PRIVILEGES") || print STDERR "Can't flush privileges\n";
287286
print "Everything is inserted and mysql privileges have been reloaded.\n\n";
288287
}
289288

0 commit comments

Comments
 (0)