Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created January 10, 2013 18:21
Show Gist options
  • Save claudiosanches/4504475 to your computer and use it in GitHub Desktop.
Save claudiosanches/4504475 to your computer and use it in GitHub Desktop.
Update domain
# Update post_content
UPDATE wp_posts SET post_content = REPLACE(post_content,'http://www.url-antiga.com.br/','http://www.url-nova.com.br/');
# Update guid
UPDATE wp_posts SET guid = REPLACE(guid,'http://www.url-antiga.com.br/','http://www.url-nova.com.br/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment