summaryrefslogtreecommitdiff
path: root/scripts/create_mysql_user.sh
blob: 35f68c581f37cb3a8633754cfdc2411bcc89c7a5 (plain)
1
2
3
4
5
6
7
#!/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