How to fix “Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000] [2002] No such file or directory” when running Magento index with MAMP Mac OS X

If you’re receiving the following error whilst trying to run the Magento indexes from Terminal

Manually reindex data in Magento (EE 1.13) using SSH/Command Line

If you’re using the newer version of Magento (1.13+ I believe) you’ll find that you’re unable to manually process certain indexes through the Magento admin. You’ll […]