This ones a shorty.
But ultimately, it’s a confusing and annoying developer experience when what you’re using in your browser via MAMP is one version of PHP / MySQL and your terminal is using another.
Add these simple lines to your ~/.bash_profile file to fix this.
# Override system PHP with MAMP PHP export PATH=/Applications/MAMP/bin/php/php7.2.10/bin/php:$PATH # Override system MySQL with MAMP Mysql export PATH=$PATH:/Applications/MAMP/Library/bin
Note: In the PHP line, be sure to replace the version number with the version you’re actually using. And remember that if you change the version in MAMP, you’ll need to update that line in your ~/.bash_profile to match.
We're Hiring‼️ ?? Looking to join our team of web developers? We're passionate about innovation, family, and community. Apply today!