mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-06 12:15: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
|
sudo mysql -u root << _EOF
|
||||||
DROP DATABASE $DATABASE;
|
DROP DATABASE $DATABASE;
|
||||||
|
REVOKE ALL PRIVILEGES ON $DATABASE.* FROM '$USER'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user