Last active
July 24, 2023 12:58
-
-
Save sebastian13/b66077f81727a2d9d1b46961471db261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start mysql service of your compose file | |
docker compose up -d mysql | |
# Load DB_PASS | |
source .env | |
docker compose exec mysql /usr/bin/mysql -u root --password=${MYSQL_ROOT_PASSWORD} -e 'show databases;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment