title: Laravel 5.5 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known
body: <p>After installing Laravel 5.5 for a new project, I get this error:</p>
  
  <pre><code>[Illuminate\Database\QueryException]
    SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known.
  </code></pre>
  
  <p>.env db connection info:</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=lavavelproject
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  
  <p>Dev environment: Windows
  PHP 7.0</p>