db: SQLSTATE[HY000] [2002] Connection refused
Opened this issue · 0 comments
cedriccharles4 commented
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:
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