There have been several other posts about this, but none of the answers seemed to work for me.
When I navigate to the CakePHP page on my local machine, there is one
Try adding the socket:
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',