mysql remote connection
to connect to a local db, just use "localhost" as mysql host
to connect to a remote db, use remote ip (real external ip of server)
however, to connect to a mysql from remote, you need to do some settings in mysql.
bind-address = 127.0.0.1, 220.127.116.11 (your external real ip)
after that, you need to give your user to connect from outside mysql server.
open mysql console (or do in phpmyadmin, privileges)
grant all privileges on db.* to user@'yourip' identified by 'pass';
(if you have firewall, you need to open port 3306)