Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oliverlundquist/079c46d0c29d92344eeae5b02873ea15 to your computer and use it in GitHub Desktop.
Save oliverlundquist/079c46d0c29d92344eeae5b02873ea15 to your computer and use it in GitHub Desktop.
Export Tables
ssh -i ~/.vagrant.d/insecure_private_key 192.168.100.109 <<- ENDSSH > test.txt
mysqldump -h0.0.0.0 -uroot -proot -d mystore2 mysql -h0.0.0.0 -uroot -proot -D mystore2 -Bse "SHOW TABLES LIKE 'chips_%'"
ENDSSH
ssh -i ~/.vagrant.d/insecure_private_key 192.168.100.109 '
HOST=0.0.0.0
USERNAME=root
PASSWORD=root
DATABASE=mystore2
mysqldump -h0.0.0.0 -uroot -proot -d $
TABLE="something"
echo $TABLE
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment