MySQL Connection Over an ssl Tunnel
Rather than leave MySQL open to the world, consider firewalling it off and tunneling a connection over ssh.
This command will allow you to connect to your MySQL server on hostname.domain.com on localhost:7777.
ssh -L7777:127.0.0.1:3306 user@hostname.domain.com
