Skip to content

Instantly share code, notes, and snippets.

@americkson
Created February 25, 2013 15:02
Show Gist options
  • Save americkson/5030387 to your computer and use it in GitHub Desktop.
Save americkson/5030387 to your computer and use it in GitHub Desktop.
Wordpress Database Move
UPDATE wp_options SET option_value = Replace(option_value, 'current-staging-domain', 'primary-domain-name');
UPDATE wp_posts SET post_content = Replace(post_content, 'current-staging-domain', 'primary-domain-name');
UPDATE wp_posts SET guid = Replace(guid, 'current-staging-domain', 'primary-domain-name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment