Skip to content

Instantly share code, notes, and snippets.

@valkirilov
Created February 1, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valkirilov/af078e44664153b7437f to your computer and use it in GitHub Desktop.
Save valkirilov/af078e44664153b7437f to your computer and use it in GitHub Desktop.
ssh -L 3307:localhost:3306 [test.com]
mysql -h 127.0.0.1 -P 3307 -u [user] -p
mysqldump -h 127.0.0.1 -P 3307 -u [user] -p [db_name] > [db_name.sql]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment