Answers for "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known"

PHP
1

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

Check your DB_HOST on your .env file

DB_HOST=http://localhost/ --> DB_HOST=localhost
Posted by: Guest on April-16-2021

Code answers related to "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known"

Browse Popular Code Answers by Language