mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Bug #39852 bug in mysql_setpermission
mysql_setpermission is modified to honor the $db variable as suggested when doing a REVOKE ALL for menu option 7.
This commit is contained in:
parent
497b8c2df9
commit
ab958ee0bd
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ sub addall {
|
||||||
$sth = $dbh->do("GRANT ALL ON $db.* TO \'$user\'\@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr;
|
$sth = $dbh->do("GRANT ALL ON $db.* TO \'$user\'\@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr;
|
||||||
} elsif ($todo == 7) {
|
} elsif ($todo == 7) {
|
||||||
# all privileges set to N
|
# all privileges set to N
|
||||||
$sth = $dbh->do("REVOKE ALL ON *.* 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";
|
$dbh->do("FLUSH PRIVILEGES") || print STDERR "Can't flush privileges\n";
|
||||||
|
|
Loading…
Reference in a new issue