I’ve a word called “[stink]” in all my wordpress posts (and they’re many). I would like to remove it from all at once. I’ve got access to mysql/phpmyadmin.. any sql command that could make this?
Thank you in advance.
I’ve a word called “[stink]” in all my wordpress posts (and they’re many). I would like to remove it from all at once. I’ve got access to mysql/phpmyadmin.. any sql command that could make this?
Thank you in advance.
You must be logged in to post a comment.
You can try something like this
Note: Make sure that you have a solid backup before you do any changes to your database.
Here is SQLFiddle demo
Since you have access to phpMyAdmin, you can take advantage of the graphical search and replace rather than having to use SQL (which was nicely explained by peterm). From within the table (wp_posts in the case of WordPress), click the
Search
tab then theFind and Replace
text near the top of the screen. Enter the text you wish to search for ([stink]) and what you want to replace it with (sounds like nothing), then select the table from the dropdown (you’ll have to do it twice to get both post_title and post_content).However, some WordPress instances seem to serialize their database entries. In that case, you’ll need a different set of tools entirely.
As peterm notes, make sure you have a backup before making changes to your database.