Created
April 17, 2014 13:36
-
-
Save gomako/10983965 to your computer and use it in GitHub Desktop.
MySQL Search and replace in wordpress database
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 wp_posts SET post_content = REPLACE ( | |
post_content, | |
'Item to replace here', | |
'Replacement text here'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use it to replace any references to localhost once moved to the staging server.
From http://www.hongkiat.com/blog/how-to-search-and-replace-wordpress-in-blog-post/