Latest Tech and Tips

How to Find and Replace Text with One Click in your WordPress Database


Are you looking to do a mass search and replace in WordPress? Whether you desire to find and replace a particular text, URL, or a picture, you can quickly do so by utilizing a find and replace WordPress plugin or a straightforward SQL inquiry. In this post, we will certainly reveal you how to find and replace text in your WordPress database.

Find and replace text in WordPress database with just one click

When You May Need Find & & Replace forWordPress Database?

Let’s intend that you have actually included details text or URL to a variety of your articles. You do not recognize which articles you have actually included that text to, however you do recognize that there are a great deal of them.

Now you can by hand browse your website and modify every article individually. That’s going to require time and has a high possibility of you missing out on some events.

Using a solitary command to immediately find and replace will certainly do the very same point however much quicker and successfully.

There is one disadvantage to it however. If you slipped up, after that you will certainly not be able to reverse it. Once you replace the text, it is gone. You will certainly require to very carefully kind the text you are seeking and the text you desire to replace itwith

Having stated that, allow’s see how you can quickly find and replace text in your WordPress database.

Getting Started

As we discussed previously that the adjustments you make to your database will certainly not be relatively easy to fix. You requirement to take every safety measure to make certain that you do not shed information.

First you require to develop a WordPress database back-up. You can do that by utilizing a WordPress back-up plugin. Alternatively, you can additionally develop a database back-up utilizing phpMyAdmin.

After developing the back-up of your WordPress database, you can proceed to run your find and replace commands.

Running Find and Replace with a WordPress plugin

If you are not acquainted with code and do not desire to create a personalized SQL inquiry, after that there is a simple to utilize find and replace WordPress plugin called Better Search Replace.

Better search replace plugin settings

It permits you to run search and replace commands from within your WordPress admin location. We have a comprehensive overview on how to search and replace in WordPress with Better Search Replace plugin.

Running Find & & Replace MySQL Query with phpMyAdmin

You can additionally utilize phpMyAdmin to find and replace text from your WordPress database.

First you require to login to cPanel control panel of your WordPress holding. Scroll down to the database area and after that click phpMyAdmin.


The screenshot over is revealing the cPanel control panel on BlueHost. Your cPanel control panel might look somewhat various.

This will certainly release phpMyAdmin where you will certainly require to click your WordPress database name and after that click SQL.

Running SQL query in phpMyAdmin

You will certainly require to get in your SQL inquiry in this layout:

upgrade TABLE_NAME established FIELD_NAME =.
replace( FIELD_NAME, 'Text to find', 'text to replace with');.

For instance, if you desired to look for text in a WordPress article’s web content, after that you would certainly create your inquiry such as this:

upgrade wp_posts established post_content =.
replace( post_content,'Text to find',' text to replace with');.

Click on the ‘Go’ switch to proceed.

PhpMyAdmin will certainly run your SQL inquiry and upon success it will certainly reveal the variety of rows influenced by the inquiry.

You can currently go to your WordPress website to see your adjustments in activity.

We wish this post aided you discover how to find and replace text with one click in your WordPress database. You might additionally desire to see our novice’s overview on WordPress database monitoring with phpMyAdmin.

If you liked this post, after that please subscribe to our YouTube Channel for WordPress video clip tutorials. You can additionally find us on Twitter and Facebook.