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