2017-11-09 15:18:26 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mysql --user=root --host=mysql <<EOF
|
2017-12-27 08:41:28 -05:00
|
|
|
CREATE DATABASE IF NOT EXISTS gitlabhq_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
2017-11-09 15:18:26 -05:00
|
|
|
CREATE USER IF NOT EXISTS 'gitlab'@'%';
|
|
|
|
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
|
|
|
|
FLUSH PRIVILEGES;
|
|
|
|
EOF
|