Skip to content

Instantly share code, notes, and snippets.

@subhajeet2107
Created October 3, 2016 07:03
Show Gist options
  • Save subhajeet2107/a4ecd09b39e2d3f85f6dd9684a79e96c to your computer and use it in GitHub Desktop.
Save subhajeet2107/a4ecd09b39e2d3f85f6dd9684a79e96c to your computer and use it in GitHub Desktop.
Connect to remote mysql instance through localhost tunnel
#for windows install putty and plink and try this
plink.exe -L 3307:mysqlhost-or-localhost:3306 username@serverip -i keyfile.ppk
#for mac
ssh -L 3307:mysql-rds-host-or-localhost:3306 username@serverip -i keyfile.ppk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment