Created
April 22, 2022 09:38
-
-
Save mipmip/048df12ad2f6c22ba6e8db4ee6eb005e to your computer and use it in GitHub Desktop.
docker-mysq-exec-on-liner
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
export $(cat .env | xargs) && docker-compose exec -T mysql mysql -p$MYSQL_PASS <<< "show databases\G" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also handy for importing and exporting: