Problem:
You need to move your magento site from one hosting to a new one with a diferent domain / url.
Solution:
You can use that method to change the store base url, you can do it from the backoffice but oviously if you move the site you will not be able to acces magento backoffice so you need to use mysql method trough that tutorial: