SSH tunnel for Mysql
This will open a tunnel, listening on localhost:3308 and forwarding everything to yourdomain.com:3306
ssh -L 3308:yourdomain.com:3306 username@yourdomain.com
And then
mysql -u username -p -h 127.0.0.1 -P 3308 databasename
Leave a Reply
You must be logged in to post a comment.