Developing for the web since 1999, that's 16 years
I admit, this one has caught me a couple of times so I thought I’d write a very quick post about it.
Each time I install Laravel on MAMP I get a PDO Exception issue and I wonder why.
The issue arrises when MySQL tries to connect. MAMP prefers connecting via a socket so the easy fix is to add this line to database.php
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
That’s all folks, worlds shortest blog post.