drop also user on db remove

This commit is contained in:
creme 2020-01-15 10:20:14 +01:00
parent 5f8aa92eae
commit 563bdd2e89
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ del_user_db() {
mysql -u root << EOF
DROP DATABASE $user;
DROP USER $user@localhost;
FLUSH PRIVILEGES;
EOF
}