DEV Community

loading...
Cover image for PHP Laravel authentication method unknown to the client [caching_sha2_password]

PHP Laravel authentication method unknown to the client [caching_sha2_password]

zeeshanmehdi profile image zeeshan mehdi ・1 min read

I am using laravel 5.8 and having MAMP server got this error resolved by adding DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock in .env file like below

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8889
DB_DATABASE=dbname
DB_USERNAME=root
DB_PASSWORD=root
DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

Discussion (0)

pic
Editor guide