Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AmericanAlpineClub's avatar

SQL ERROR

I have a fairly low traffic server on Digital Ocean setup via Forge running Laravel v5.1. For the database it connects to a AWS -> RDS Amazon Aurora (mysql) instance. I have been seeing this error come up many times and I'm not exactly sure the best approach on how to address / fix it. Any ideas or suggestions would be welcome. Thanks!

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in [project_root]/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php on line 55

0 likes
2 replies
jlrdw's avatar

Are you sure your env reflects your production credentials and not your development credentials?

Please or to participate in this conversation.