The xampp server is a local testing server. You will not be able to connect to it from a remote host unless you set it up on a live server. You should make a backup of your database on your xampp and upload it to the database on the hosted server. Then you will have to modify the connections file as sally pointed out.