Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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