How to Fix SQLSTATE[HY000] [2002] Connection Refused in Laravel
SQLSTATE[HY000] [2002] connection refused means Laravel could not reach your database server at all. This guide walks through every common cause — from a stopped MySQL service to Docker hostnames and cached configs — with the exact fix for each.