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:
Clint Byrum 2014-01-24 12:06:35 -08:00
parent 0f3f64d0fd
commit 2a49ab0c84
1 changed files with 0 additions and 1 deletions

View File

@ -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';