Remote server - mysql connect - is that possible?

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.

PHP: mysql_connect - Manual

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.