# 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 "$@" | |