StocksNew/vendor/laravel/sail/database/mysql/create-testing-database.sh
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

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