Created
December 29, 2014 14:24
-
-
Save joelataylor/aec1d1bd6a3bc5520a60 to your computer and use it in GitHub Desktop.
Change WP URLs
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
#Fix WP URLs | |
SET @oldurl = 'http://staging.windfarmstudios.net'; | |
SET @newurl = 'http://staging.wubdfarnstyduis.com'; | |
UPDATE wm_wp_options SET option_value = REPLACE(option_value, @oldurl, @newurl); | |
UPDATE wm_wp_posts SET guid = REPLACE (guid, @oldurl, @newurl); | |
UPDATE wm_wp_posts SET post_content = REPLACE (post_content, @oldurl, @newurl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment