Forked from oscar-reales-interactiv4/magento-store-replace.sql
Created
February 12, 2014 23:08
-
-
Save oreales/8966404 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Select all the config data with the current domain in the value | |
select * from core_config_data where value like "%www.old-domain.com%"; | |
#replacing www.old-domain.com with www.new-domain.com | |
update core_config_data set value=REPLACE(value, 'www.old-domain.com', 'www.new-domain.com') | |
where value like "%www.old-domain.com%"; | |
#check if it worked! | |
select * from core_config_data where value like "%www.new-domain.com%"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment