Created
April 12, 2014 16:01
-
-
Save floodedcodeboy/10543057 to your computer and use it in GitHub Desktop.
Wordpress Migration search and replace for db
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
UPDATE wp_options SET option_value = REPLACE(option_value, ':8080', ''); | |
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, ':8080', ''); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, ':8080', ''); | |
UPDATE wp_posts SET post_excerpt = REPLACE(post_excerpt, ':8080', ''); | |
UPDATE wp_posts SET guid = REPLACE(guid, ':8080', ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment