Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Tunneling DBD::mysql connections over SSH without using external programs

by Corion (Patriarch)
on Apr 11, 2013 at 20:16 UTC ( [id://1028225]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ssh -fNg -L 6603:127.0.0.1:3306 remote_user@mysql.example.com
    
  2. or download this
    my $ssh_pid= open("ssh -fNg -L 6603:127.0.0.1:3306 remote_user@mysql.e
    +xample.com |")
        or die;
    ...
    
    # tear down the connection
    kill -9 => $ssh_pid;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028225]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found