Revoke priveleges after drop database

This commit is contained in:
Blade of Darkness 2022-03-30 20:25:11 +02:00
parent fd8641f4c3
commit c8d74e219b
1 changed files with 1 additions and 0 deletions

View File

@ -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
}