7 lines
196 B
Bash
7 lines
196 B
Bash
#!/usr/bin/env bash
|
|
|
|
mysql --user=root --password="$MYSQL_ROOT_PASSWORD" <<-EOSQL
|
|
CREATE DATABASE IF NOT EXISTS testing;
|
|
GRANT ALL PRIVILEGES ON \`testing%\`.* TO '$MYSQL_USER'@'%';
|
|
EOSQL
|