debian-mirror-gitlab/scripts/create_mysql_user.sh
2018-11-08 19:23:39 +05:30

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