| 开发者 | craftroq |
|---|---|
| 更新时间 | 2026年10月8日 07:06 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
wp crq search-replace and wp crq resume./wp-content/plugins/craftroq-relocate-db, or install it from the Plugins screen.Yes. Take a full database backup before replacing anything. The file of original values covers what a replacement changed, but it is not a substitute for a backup.
There is no undo button. Each replacement can save the original value of everything it changed to a downloadable .sql.gz file, and importing that file (for example with phpMyAdmin, or gunzip -c file.sql.gz | mysql your_database) puts those values back. It overwrites any edits made to those values since, so use it soon after the replacement.
Yes. Serialized values are rewritten with their lengths recalculated, and checked to still be readable afterwards. Values that could not be changed safely are left as they were and listed in the results.
The batch in progress either completes or is rolled back (on InnoDB tables, which WordPress uses by default). Open the job from the Dashboard or History and continue it: it picks up from the last completed batch.
Nothing in the tables your site uses has changed. The tables in the file are built under temporary names and only put in place, all together, once the whole file has run. A failed import can be resumed or discarded, and one whose page was closed is offered again on the Import screen. The database needs room for both copies until the import finishes.
No. Multisite is not supported. On a Multisite network the plugin does not run, and says so on the Plugins screen.
The tables you tick. By default those are the tables with your WordPress prefix. Other tables in the same database can be added, and each table's text columns can be switched off one by one. The plugin's own tables are never searched.
wp crq search-replace https://staging.example.com https://example.com --dry-run shows what would change. Without --dry-run the command asks for confirmation and applies the dry run it just made. See wp help crq search-replace for all options.
No. Everything happens in your own database. Nothing is sent to CraftRoq or anyone else.