Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created January 6, 2013 16:44
Show Gist options
  • Save claudiosanches/4468445 to your computer and use it in GitHub Desktop.
Save claudiosanches/4468445 to your computer and use it in GitHub Desktop.
Gist para o Paulo Beneton
# Update post_content
UPDATE wp_posts SET post_content = REPLACE(post_content,'http://localhost/wp-content/uploads/','http://localhost/wordpress/wp-content/uploads/');
# Update guid
UPDATE wp_posts SET guid = REPLACE(guid,'http://localhost/wp-content/uploads/','http://localhost/wordpress/wp-content/uploads/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment