How to Fix SQLSTATE[HY000] [2002] Connection Refused in Laravel
Laravel throws SQLSTATE[HY000] [2002] Connection refused when PHP cannot reach MySQL at all. Here is how to find which of the six usual causes is yours — and fix it for good.
1 article
Laravel throws SQLSTATE[HY000] [2002] Connection refused when PHP cannot reach MySQL at all. Here is how to find which of the six usual causes is yours — and fix it for good.