It is dependent on your host. Some hosts do not allow connection to the MySQL server from outside computers. Some hosts will require you to register the IP address of computers that are allowed to connect. you need to check with the host to see what their policy is regarding outside computers connecting to the MySQL server.
If they do allow outside connections, they should be able to help you in creating the connection, if not, then you will need a local testing server.