I\'m trying to connect to my MySQL DB with the Terminal on my Apple (With PHP).
Yesterday it worked fine, and now I suddenly get the error in the title.
The
You can do it by simply aliasing the MAMP php on Apple terminal:
alias phpmamp='/Applications/MAMP/bin/php/php7.0.0/bin/php'
Example: > phpmamp - v
> phpmamp - v
Now you can run something like: > phpmamp scriptname.php
> phpmamp scriptname.php
Note: This will be applied only for the current terminal session.