Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created November 30, 2012 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlongren/4178014 to your computer and use it in GitHub Desktop.
Save tlongren/4178014 to your computer and use it in GitHub Desktop.
MySQL Query Browser through SSH Tunnel
~$ ssh root@dev.phandroid.com -L 3306:127.0.0.1:3306 -N
~$ ctrl-z
~$ bg <---background the tunnel
~$ mysql-query-browser
Connect to 127.0.0.1 with credentials from /root/.my.cnf
~$ fg <---bring tunnel to foreground
~$ ctrl-c <---end tunnel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment