summaryrefslogtreecommitdiff
path: root/scripts/create_mysql_user.sh
blob: 28f6cfb50ae23d55dcf73681fcc559db0dd4cbb4 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

mysql --user=root --host=mysql <<EOF
CREATE DATABASE IF NOT EXISTS gitlabhq_test;
CREATE USER IF NOT EXISTS 'gitlab'@'%';
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
FLUSH PRIVILEGES;
EOF