BigW Consortium Gitlab

create_mysql_user.sh 271 Bytes
Newer Older
1 2 3
#!/bin/bash

mysql --user=root --host=mysql <<EOF
4
CREATE DATABASE IF NOT EXISTS gitlabhq_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
5 6 7 8
CREATE USER IF NOT EXISTS 'gitlab'@'%';
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
FLUSH PRIVILEGES;
EOF