Advertisement
Guest User

Untitled

a guest
Mar 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/sh
  2.  
  3. # run this as ./this-file.sh < query.sql > output.tsv
  4. DB_USER="db user here"
  5. DB_PASS="db pass here"
  6. DB_NAME="db name here"
  7. DB_HOST="db host here"
  8.  
  9. mysql --user=$DB_USER --password=$DB_PASS -D $DB_NAME --host=$DB_HOST --batch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement