MySQL SSH Tunneling

by damonp on August 12, 2005

in General,Snippets

ssh -fNg -L 3307:remotehost:3306 username@remotehost

mysql -P 3307 -h remotehost -u username -p

Use 3307 as the port if running MySQL on the local box too.

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

Leave a Comment

Previous post:

Next post: