Name or service not known
codeHello. I have just put my Symfony application on a LEMP droplet to test. Setup went all fine, it was working fine for about 5-10 minutes and now I always get this error:
An exception occurred in driver: SQLSTATE[HY000]  phpnetworkgetaddresses: getaddrinfo failed: Name or service not known
I haven’t changed anything in order for this error to occur. I followed this tutorial to get it up and running.
Any help would be great.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×