You would go to your files, library/config.php to be exact and edit the host for the mysql server, usually it is "localhost" when xF and the database on the same server, but if you want to move the database just replace "localhost" with the IP of the server where the database resides.
Make sure that the port and username/password are also all correct in the same file.