Created
March 19, 2014 17:38
-
-
Save jamiehs/9647105 to your computer and use it in GitHub Desktop.
Simple version of MySQL find and replace for WOrdPress database migration.
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_options table | |
UPDATE wp_options SET option_value = REPLACE(option_value,'example.com','example.dev'); | |
# Update wp_posts table | |
UPDATE wp_posts SET guid = REPLACE(guid,'example.com','example.dev'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment