Skip to content

Instantly share code, notes, and snippets.

@sebastian13
Last active July 24, 2023 12:58
Show Gist options
  • Save sebastian13/b66077f81727a2d9d1b46961471db261 to your computer and use it in GitHub Desktop.
Save sebastian13/b66077f81727a2d9d1b46961471db261 to your computer and use it in GitHub Desktop.
#!/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