MAMP | Modules Unraveled
Drush Not Working With MAMP? Here's How To Fix It!
Here's the issue
If you're using MAMP, you might have experienced an issue where a website loads just fine in the browser, but when you try to use a Drush command, you get an error like the following:
exception 'PDOException' with message 'SQLSTATE[HY000]  No such file or directory' in core/lib/Drupal/Core/Database/Driver/mysql/Connection.php:146
Install Drupal 8 locally on MAMP with only two words!
I just spent the last two days trying to find the best, fastest, easiest way to install Drupal 8 locally on my mac... I think I've done it!
Using the awesome power of Composer, Drupal Console, and Drush, I can simply type "composer install" and then sit back and watch my site be created, install, and open in a new window!
I'm going to write a more in-depth blog post soon, but I couldn't help but share it now. I'm just too excited!