From http://www.actualtech.com/mysql_ssh.php

SSH Tunnel for MySQL on OS X