Skip to content

Instantly share code, notes, and snippets.

@mheap
Created November 13, 2011 20:45
Show Gist options
  • Save mheap/1362663 to your computer and use it in GitHub Desktop.
Save mheap/1362663 to your computer and use it in GitHub Desktop.
Connect to a remote mySQL Server over SSH
ssh -fNg -L3310:127.0.0.1:3306 user@server.domain.ext
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