STATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. (SQL: select * from information_schema.tables where table_schem a = pms_task and table_name = migrations and table_type = 'BASE TABLE') code example

Example: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. (SQL: select * from information_schema.tables where table_schema = lara_c i_cd and table_name = migrations and table_type = 'BASE TABLE')

DB_CONNECTION=mysql
DB_HOST=127.0.0.1 //remove localhost and add 127.0.0.1
DB_PORT=3306
DB_DATABASE=lweb
DB_USERNAME=root
DB_PASSWORD=

Tags:

Php Example