SQLSTATE[HY000] [2002] No such file or directory laravel docker

preview_player
Показать описание
I had the exact same problem. None of the above solutions worked for me. I solved the problem by changing the "DB_HOST" in the .env file from "localhost" to "192.168.10.57".
Рекомендации по теме
Комментарии
Автор

change in .env file

DB_HOST=host.docker.internal

solves the problem

dbaznr
welcome to shbcf.ru