Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created November 30, 2012 19:37
Show Gist options
  • Select an option

  • Save tlongren/4178014 to your computer and use it in GitHub Desktop.

Select an option

Save tlongren/4178014 to your computer and use it in GitHub Desktop.
MySQL Query Browser through SSH Tunnel
~$ ssh [email protected] -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