The following article shows you what to do when you move your Magento store on the same server. This procedure is exactly the same when you move your shop to another domain or server with an additional step .
Adjust Database Configuration
After the files are restored you should alter the configuration file in order to match the new settings. All you need to change here is the database details at the new location. Those are stored in the app/etc/local.xml file. The lines you need to alter are: