Test search and replace in the database
wp search replace dry run | test what search-replace changes | find url in wordpress database | wp-cli | search-replace | database | migrationwp search-replace 'http://example.com' 'https://example.com' --all-tables --dry-run --report-changed-only --path=/var/www/vhosts/example.com/httpdocsRuns search and replace as a simulation only and lists the number of matches per table and column. Serialized data is handled correctly. Worthwhile before every real run to catch typos and unexpectedly high match counts.
Note: --all-tables also covers tables without the WordPress prefix in the same database. Without that option, only registered WordPress tables are searched.
Also searched as
- wp search replace dry run
- test what search-replace changes
- find url in wordpress database