Last active
March 15, 2016 22:51
-
-
Save iguana/0974450bd19e03608730 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
#!/usr/bin/sh | |
# run this as ./this-file.sh < query.sql > output.tsv | |
DB_USER="db user here" | |
DB_PASS="db pass here" | |
DB_NAME="db name here" | |
DB_HOST="db host here" | |
mysql --user=$DB_USER --password=$DB_PASS -D $DB_NAME --host=$DB_HOST --batch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment