Created
April 29, 2013 10:34
-
-
Save oscar-reales-interactiv4/5480867 to your computer and use it in GitHub Desktop.
Magento: Replace domain / store URLs direct in MySQL (no sed)
This file contains 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