Created
November 13, 2011 20:45
-
-
Save mheap/1362663 to your computer and use it in GitHub Desktop.
Connect to a remote mySQL Server over SSH
This file contains hidden or 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
ssh -fNg -L3310:127.0.0.1:3306 [email protected] | |
mysql -h127.0.0.1 -P 3310 -u user -p db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment