Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement