message: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select * from `users`...)" message: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select * from `users`...)" laravel laravel

message: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select * from `users`...)"


Change your environment variable to connect to the local MySQL server via TCP

DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=clientDB_USERNAME=jdggsssDB_PASSWORD=kjhgfdddd


Your DB_HOST environment variable is clearly wrong. You added the http:// URI Scheme to it. The http:// scheme is for identifying a http protocol, MySQL don't use it.

You should use only the hostname, without prefixes:

DB_HOST=localhost