ERROR: SQLSTATE[HY000] [2002] Connection refused with Lumen




Did you change mypassword to the corresponding password?


Yes, I have changed but it’s still buggy. I tried to delete and recreate the database but nothing changed


Good day @nvt777!

Please follow this tutorial and update the database credentials in /config/database.php instead.


Tks. Great comment. It’s worked


We’re happy the issue has been solved :slight_smile: