forked from team/makeuser
Revoke priveleges after drop database
This commit is contained in:
parent
fd8641f4c3
commit
c8d74e219b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue