Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created October 11, 2012 04:47
Show Gist options
  • Save claudiosanches/3870226 to your computer and use it in GitHub Desktop.
Save claudiosanches/3870226 to your computer and use it in GitHub Desktop.
WordPress: Update Database to Deploy
# Update post_content
UPDATE wp_posts SET post_content = REPLACE(post_content,'http://localhost/cliente/wp-content/uploads/','http://www.cliente.com/wp-content/uploads/');
# Update guid
UPDATE wp_posts SET guid = REPLACE(guid,'http://localhost/cliente/wp-content/uploads/','http://www.cliente.com/wp-content/uploads/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment