Do not drop databases without a good reason
We don't always use os-db-create on an empty database server. This script should just create, as its name implies. Dropping whole databases is an extremely important operation and should not be done "just in case". Change-Id: I1dbdab0fd81ba6abbd87b5bd6fcf213f0fe51455
This commit is contained in:
parent
0f3f64d0fd
commit
2a49ab0c84
|
@ -3,7 +3,6 @@ set -eu
|
|||
|
||||
function create_db {
|
||||
local sql="
|
||||
drop database if exists $1;
|
||||
create database if not exists $1;
|
||||
grant all on $1.* to '$2'@'localhost' identified by '$3';
|
||||
grant all on $1.* to '$2'@'%' identified by '$3';
|
||||
|
|
Loading…
Reference in New Issue