Befor I forget, I use Magento 22.214.171.124. I backuped my live Magento shop. Then I copied the backup to my test shop an loaded the backup. Now I cant reach the frontend or the backend. I'm always beeing redirected to the live Shop. I believe its because of the address set up in the shop. Where are they beeing saved?
you need to change in core_config_data table.
How to change base_url settings with mysql from the command line:
find your configuration:
select * from core_config_data where path = 'web/unsecure/base_url'; select * from core_config_data where path = 'web/secure/base_url';
edit your configuration:
update core_config_data set value = '/new.domain.com/' where config_id = ID;
ID from above.