in reply to How do you use Net::OpenSSH to query mysql database via ssh tunnel
A related thread: Using Net::SSH2 with DBI.