Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 16, 2009, 1:13 pm
rate this thread
I would like to lock the server down so that mysql can only be
connected to from localhost but that would break my script
What I would like to do is connect to the mysql server via a ssh
Can I do this in a perl script and if so how?
Re: Using perl can I connect to mysql via a ssh tunnel
I don't know much about MySQL but I presume you just connect over a TCP
port? In which case you simply establish a tunnel, either using one of
the SSH modules or by invoking ssh(1) in the background, and then tell
DBI to connect to the local end of the tunnel.