mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-04 19:55:38 +00:00
Revoke priveleges after drop database
This commit is contained in:
1 parent
fd8641f4c3
commit
c8d74e219b
1 file changed
+1
@@ -90,6 +90,7 @@ database_remove()
|
||||
{
|
||||
sudo mysql -u root << _EOF
|
||||
DROP DATABASE $DATABASE;
|
||||
REVOKE ALL PRIVILEGES ON $DATABASE.* FROM '$USER'@'localhost';
|
||||
FLUSH PRIVILEGES;
|
||||
_EOF
|
||||
}
|
||||
Reference in new issue
Block a user