Created
May 8, 2010 22:24
-
-
Save nhaskins/394805 to your computer and use it in GitHub Desktop.
wordpress mysql find and replace localizers
This file contains 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 guid = replace(guid, 'simplehelix.com', 'com'); | |
update wp_posts set post_content = replace(post_content, 'simplehelix.com', 'com'); | |
update wp_options set option_value = replace(option_value, 'simplehelix.com', 'com'); | |
update wp_postmeta set meta_value = replace(meta_value, 'simplehelix.com', 'com'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mySQL wordpress localizer, helpful find and replace mysql commands for use after moving from a dev address to a production address.
in the example, we're going from 'mysite.simplehelix.com' to 'mysite.com'