{"id":77,"hash":"ac32f0c11c5e031a5f2ce0c8c5b1f28108c1e414cea4bd5ecd87250e5aeeeccc","pattern":"SQLSTATE[HY000] [2002] Connection refused","full_message":"SQLSTATE[HY000] [2002] Connection refused","ecosystem":"composer","package_name":"laravel/framework","package_version":null,"solution":"PDO / PHP cannot reach the database host.\n1. Laravel: confirm DB_HOST, DB_PORT in .env match the running DB service.\n2. Inside Docker / Sail: use the service name (`mysql`, `pgsql`), not `127.0.0.1`.\n3. `php artisan config:clear` after editing .env.\n4. Verify MySQL/PostgreSQL is listening on the configured port.","confidence":0.9,"source":"internal","source_url":null,"votes":19,"created_at":"2026-04-19T03:37:14.149277+00:00","updated_at":"2026-04-19T03:37:14.149277+00:00"}