go-search-replace icon indicating copy to clipboard operation
go-search-replace copied to clipboard

🚀 Search & replace URLs in WordPress SQL files.

Results 9 go-search-replace issues
Sort by recently updated
recently updated
newest added

Have recently come across your wonderful script to cure Wordpress database copies between domains. Have one more challenge - I just need to replace "staging." subdomain in all urls mentioned...

In the attached SQL dumps of a WordPress options table, some string data is not being serialized correctly. Command: ```cat wp_1000642_options.sql | ./go-search-replace hcommons.org heinlein.mlacommons.org > wp_1000642_options_replaced.sql``` The error occurs...

One of the primary use cases of this would be to rewrite domain urls in the db from http to https I see you have several tickets on this: https://github.com/Automattic/go-search-replace/issues/3...

This introduces an alternate approach to handling serialized strings. Previously, we were running a search-replace per line and then attempting to fix the lengths of any serialized strings we found....

It is an edge case and the first time I've seen/noticed it so I don't expect a fix, and it's probably out of scope for this tool, but since I...

To reproduce: ``` php -r 'echo serialize("aaaaabbbbbbbbbbaaaaa"), PHP_EOL;' > test.txt cat test.txt | ./go-search-replace bbbbbbbbbb ccccc cat test.txt | ./go-search-replace bbbbbbbbbb ccccccccccccccc ``` Expected result: ``` s:15:"aaaaacccccaaaaa"; s:25:"aaaaacccccccccccccccaaaaa"; ``` Actual...

To reproduce: ``` php -r 'echo serialize("aaaaabbbbbbbbbbaaaaa");' > test.txt cat test.txt | ./go-search-replace bbbbbbbbbb ccccc ``` Expected result: ``` s:15:"aaaaacccccaaaaa"; ``` Actual result: empty output