Created
October 11, 2012 04:47
-
-
Save claudiosanches/3870226 to your computer and use it in GitHub Desktop.
WordPress: Update Database to Deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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