Created
January 9, 2019 05:25
-
-
Save lenconda/714488ad33a1afa6b4731d07f04cf617 to your computer and use it in GitHub Desktop.
通过SSH端口转发将远程MySQL服务器映射到本地
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
IP=SERVER_ADDRESS | |
# LOCAL_PORT:IP:SERVER_PORT | |
ssh -fNg -L 3306:IP:3306 root@IP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment