4 ms·
As far as I know WP-CLI also handles serialized data correctly. By the way, I very much prefer the wpmigrate-db plugin.
by mpol 5y ago
As far as I know WP-CLI also handles serialized data correctly.
By the way, I very much prefer the wpmigrate-db plugin.
- johnchristopher 5y agoAlso, wpmigrate-db has wp-cli commands to export the database, I don't know if wp-cli search-replace can do that. Edit: And it does: [--export[=<file>]] Write transformed data as SQL file instead of saving replacements to the database. If <file> is not supplied, will output to STDOUT. Well, wpmigrate-db allows to replace multiple strings in one command and that's something wp-cli default search-replace doesn't provide.