Skip to content

Instantly share code, notes, and snippets.

@floodedcodeboy
Created April 12, 2014 16:01
Show Gist options
  • Save floodedcodeboy/10543057 to your computer and use it in GitHub Desktop.
Save floodedcodeboy/10543057 to your computer and use it in GitHub Desktop.
Wordpress Migration search and replace for db
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