Skip to content

Instantly share code, notes, and snippets.

@jibone
Created December 22, 2012 16:28
Show Gist options
  • Save jibone/4359734 to your computer and use it in GitHub Desktop.
Save jibone/4359734 to your computer and use it in GitHub Desktop.
Just the mysql statement for find and replace.
UPDATE wp_posts set post_body = replace(post_body, 'needle', 'chocolate');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment