This commit is contained in:
Doar Mihai
2026-04-04 12:40:25 +03:00
parent 0df70a626a
commit 5fb17f717d
32 changed files with 926 additions and 154 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
mysql --user=root --password="$MYSQL_ROOT_PASSWORD" <<-EOSQL
CREATE DATABASE IF NOT EXISTS testing;
EOSQL
if [ -n "$MYSQL_USER" ]; then
mysql --user=root --password="$MYSQL_ROOT_PASSWORD" <<-EOSQL
GRANT ALL PRIVILEGES ON \`testing%\`.* TO '$MYSQL_USER'@'%';
EOSQL
fi