修复数据库sysom存在时drop报错问题

Signed-off-by: wangqing <wangqing@uniontech.com>
This commit is contained in:
wangqing 2022-03-29 17:02:44 +08:00
parent 3ec85473a9
commit 57049a87b1
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ setup_database() {
systemctl enable mariadb.service
mysql -uroot -e "create user if not exists 'sysom'@'%' identified by 'sysom_admin';"
mysql -uroot -e "grant usage on *.* to 'sysom'@'localhost' identified by 'sysom_admin'"
mysql -uroot -e "drop database sysom;"
mysql -uroot -e "drop database if exists sysom;"
mysql -uroot -e "create database sysom character set utf8;"
mysql -uroot -e "grant all privileges on sysom.* to 'sysom'@'%';"
mysql -uroot -e "flush privileges;"