First of all, thank you for your great script!
I'm trying to use the CLI version for the first time but can't make it work…
I'm using MAMP Pro on a Macbook. Here is the configuration of the ports on MAMP Pro:
Here is the command I used:
/Applications/MAMP/bin/php/php7.4.2/bin/php ./srdb.cli.php -h 127.0.0.1 -n mydbname -u root -proot --port 3306 -c utf8mb4 -s "olddomain" -r "newdomain"
With this command, I got this:
db: SQLSTATE[HY000] [2002] Connection refused And we're done!
Hello there :)
First of all, thank you for your great script! I'm trying to use the CLI version for the first time but can't make it work… I'm using MAMP Pro on a Macbook. Here is the configuration of the ports on MAMP Pro:![image](https://user-images.githubusercontent.com/5189652/177717298-9178ebb7-2cd7-4030-953c-af74a2925519.png)
Here is the command I used:
/Applications/MAMP/bin/php/php7.4.2/bin/php ./srdb.cli.php -h 127.0.0.1 -n mydbname -u root -proot --port 3306 -c utf8mb4 -s "olddomain" -r "newdomain"
With this command, I got this:db: SQLSTATE[HY000] [2002] Connection refused And we're done!
Could you pease tell me what's wrong?
Kind regards, Cedric