I'm sorry, I usually don't hit the Perl threads and must have missed yours.
You know there's an option to encrypt a DBI session with SSL? Check the DBD::mysql docs for "mysql_ssl". Your mysql installation needs to be compiled with ssl support, of course.
But you didn't waste your time learning how to use ssh, it's pretty handy for a lot of things.