Yes, I am only talking about remote connections. This sounds like a great idea Alexander, and it certainly looks doable in PHP:
http://themetricsystem.rjmetrics.com/2009/01/06/php-mysql-and-ssh-tunneling-port-forwarding/ Here's hoping that it will be just as easy to do it with Perl and DBI. > If you are worried about a MySQL connection between two machines via the > internet, use a VPN connection between the machines, or use a SSH > connection from the client to the server, forwarding the MySQL port > through the SSH connection. This way, you don't have to expose the MySQL > server to the internet at all, which is probably a good idea anyway. In > that case, it also doesn't matter if MySQL encrypts the password or not. > > Alexander