修复数据库sysom存在时drop报错问题
Signed-off-by: wangqing <wangqing@uniontech.com>
This commit is contained in:
parent
3ec85473a9
commit
57049a87b1
|
@ -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;"
|
||||
|
|
Loading…
Reference in New Issue