mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 13:40:17 +00:00
Revoke priveleges after drop database
This commit is contained in:
@@ -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