diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-05-14 20:49:46 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-05-16 16:52:08 +0300 |
commit | 0ab6469187285368d9f64f9ec67dbbcfa3e5a901 (patch) | |
tree | cc4a30610d5ade08499667c74c8bcc467db4eb25 /scripts/create_mysql_user.sh | |
parent | cdcde75bb782951b27ab9db0d54a71db7c94d7cb (diff) |
Grant privileges after database is created
Never drop the database when granting privileges
Diffstat (limited to 'scripts/create_mysql_user.sh')
-rw-r--r-- | scripts/create_mysql_user.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/create_mysql_user.sh b/scripts/create_mysql_user.sh index 286b1325f1d..35f68c581f3 100644 --- a/scripts/create_mysql_user.sh +++ b/scripts/create_mysql_user.sh @@ -1,7 +1,6 @@ #!/bin/bash mysql --user=root --host=mysql <<EOF -CREATE DATABASE IF NOT EXISTS gitlabhq_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER IF NOT EXISTS 'gitlab'@'%'; GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%'; FLUSH PRIVILEGES; |