mirror of https://git.envs.net/envs/ops.git
drop also user on db remove
This commit is contained in:
parent
5f8aa92eae
commit
563bdd2e89
|
@ -43,6 +43,7 @@ del_user_db() {
|
|||
|
||||
mysql -u root << EOF
|
||||
DROP DATABASE $user;
|
||||
DROP USER $user@localhost;
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue