SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed:

[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido. (SQL: select * from information_schema.tables where table_schema = laravel-b
log and table_name = migrations)

 

[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.

 

[PDOException]
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.

 

[PDOException]
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.

 

Seu código no .env precisa ter essa configuração. (Your .env file have to have this configurations – and ready!)

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mydb
DB_USERNAME=root
DB_PASSWORD=”

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site