big / init-db.sh
mfoud444's picture
Add application file
e757948
raw
history blame contribute delete
No virus
490 Bytes
#!/bin/bash
# set -e
# Start MySQL service
# service mysql start
# # Wait for MySQL to be available
# sleep 10
# Create the database and user
mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS big;"
# mysql -u root -proot -e "CREATE USER 'bagisto'@'%' IDENTIFIED BY 'bagisto';"
# mysql -u root -proot -e "GRANT ALL PRIVILEGES ON bagisto.* TO 'bagisto'@'%';"
# mysql -u root -proot -e "FLUSH PRIVILEGES;"
# Stop MySQL service
# service mysql stop
# Start the main process
exec "$@"