Created
December 26, 2013 12:24
-
-
Save amezhenin/8133189 to your computer and use it in GitHub Desktop.
ssh tunnel to you remote server(MySQL server in this case)
This file contains 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 -L 3308:127.0.0.1:3306 <remote_host> | |
# connect: | |
# mysql -h 127.0.0.1 -u root --port 3308 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment