A find and replace tool for MySql. Given a --find
string, it will find all occurrences within a
a schema and replace it with a --replace
string.
bash
$ farm \
--database mysql://user:password@localhost:3306/wordpress \
--find https://apolitical.co \
--replace http://localhost:8080
Clone this repository and run cargo install
.
This repository is available on Docker
Usage:
docker run --rm -it apolitical/farm --database <db-url> --find <find> --replace <replace>
or
docker run --rm apolitical/farm --database <db-url> --find <find> --replace <replace> -y
If your database is also in docker, don't forget --link <my-db-container-name>
The entry point is farm, so you do not need to add the binary name.