Skip to content

Instantly share code, notes, and snippets.

@anselmdk anselmdk/
Last active Aug 24, 2018

What would you like to do?


This might need to be done for mysql:

sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql

Connection problems can be alleviated using this socket: /Applications/MAMP/tmp/mysql/mysql.sock

How to fix Can’t connect to local MySQL server through socket /tmp/mysql.sock

ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

then restart mysql


As of Mamp 4, MAMP Pro sports the option to "Make this version available on the command line" under the PHP language settings.
This does work for just using PHP on the command line, but still gives some issues with composer etc.
The issue seems to be that when checking that box, MAMP Pro adds php as an alias in your .profile/ .bash_profile file, and not as path.
In order to fix this, add the following to your ~./profile, where the php version coincides with the one MAMP uses:

export PATH

This needs to coincide with your installed php version

SilverStripe specific: You might get out-of-memory issues when changing this, make sure to delete all files in your silverstripe-cache directory in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.