Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple version of MySQL find and replace for WOrdPress database migration.
# 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
You can’t perform that action at this time.