Issue with WP-CLI search-replace and MySQL query

[ad_1]

I’m currently using search-replace in WP-CLI to switch over an old domain to a new one. When running the following command in WP-CLI, it shows over 4,000 results in the wp_options table:

wp search-replace ‘old URL’ ‘new URL’ —skip-columns=guid —dry-run

However when trying to search for this in MySQL with the same URL it shows over 6,000 results:

SELECT*FROM ‘wp_options’ WHERE option_value like ‘old URL’

Is there a reason why it would show two different results and not show the same ones?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer