From c8d74e219b0af566aaac3cfe9cebce6784204b1c Mon Sep 17 00:00:00 2001 From: Naglfar Date: Wed, 30 Mar 2022 20:25:11 +0200 Subject: [PATCH] Revoke priveleges after drop database --- include/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions b/include/functions index 1eb8458..603790c 100644 --- a/include/functions +++ b/include/functions @@ -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 }