My MAMP is running, still when trying to connect MySQL db into my laravel project.
After PHP artisan serve, browsing application on generated URL. It’s showing mysql Access denied for user ‘root’@’localhost’
How to fix this…
On mac or unix you have to include the socket path in the configuration database.php file
i.e 'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',