File "create-testing-database.sh"
Full Path: /var/www/html/back/vendor/laravel/sail/database/mysql/create-testing-database.sh
File size: 297 bytes
MIME-type: text/x-shellscript
Charset: utf-8
#!/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