interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
3.99k stars 850 forks source link

-bash: !28: event not found #371

Open josipWebbite opened 2 years ago

josipWebbite commented 2 years ago

Hi, I am using this tool for years and this first time happend to me. I used something like this:

_php srdb.cli.php -h HOST -n DBNAME -u DBUSER -p "PASSWORD" -s "https://DOMENA_OLD" -r "http://DOMENA_NEW"_ and got: -bash: !28: event not found This happen with version 4.1.1 but also with 4.1.3. Few minutes before, I used the same thing and worked fine. Any advice?

peterbra commented 2 years ago

Try wrapping your MySQL password with single quotes like: php srdb.cli.php -h HOST -n DBNAME -u DBUSER -p 'PASSWORD' -s "https://DOMENA_OLD" -r "http://DOMENA_NEW"

josipWebbite commented 2 years ago

Thanks, I will try

opmat commented 1 year ago

Life saver. Thanks this works perfectly