0ab6469187
Never drop the database when granting privileges
7 lines
169 B
Bash
7 lines
169 B
Bash
#!/bin/bash
|
|
|
|
mysql --user=root --host=mysql <<EOF
|
|
CREATE USER IF NOT EXISTS 'gitlab'@'%';
|
|
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
|
|
FLUSH PRIVILEGES;
|
|
EOF
|