Run from command line: $ /Applications/MAMP/Library/bin/mysql -u root -p Is mySQL running? $ ps -e | grep mysql Does socket file exist? $ ls -la /Applications/MAMP/tmp/mysql/mysql.sock You can check if mysql is running with the following command: mysqladmin -u root -p status On OS X to start/stop/restart MySQL from the command line: $ sudo /usr/local/mysql/support-files/mysql.server start $ sudo /usr/local/mysql/support-files/mysql.server stop $ sudo /usr/local/mysql/support-files/mysql.server restart
If you installed a new MAMP, your default setting are too low. You have to edit the correct .INI file of your chosen PHP version! It should be located here: Example for PHP 5.4.19 Applications/MAMP/bin/php/php5.4.19/conf/php.ini Edit the file and search for: memory_limit = 32M I would suggest a value of 128M instead. Save the file. Restart the server/MAMP app!!