as the title says is it possible to connect to a remote mysql db?
if so how can I do that?
yes it is possible.
Do not do it, however. Unless you have a secure VPN or the DB server resides on the local network. DO NOT connect to a remote DB server through the internet without a secure VPN connection.