debian-mirror-gitlab/scripts/create_mysql_user.sh

8 lines
169 B
Bash
Raw Normal View History

2018-03-17 18:26:18 +05:30
#!/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