#!/bin/bash set -xeo pipefail echo "CREATE DATABASE IF NOT EXISTS \`hydra\`;" | "${mysql[@]}" echo "GRANT ALL ON \`hydra\`.* TO '$MYSQL_USER'@'%' ;" | "${mysql[@]}"