title: Laravel 5.4 on localhost: QueryException could not find driver (SQL: select * from `sessions`
body: <p>I'm trying to run laravel 5.4 on localhost php 5.6 using XAMPP with these laravel .env configurations</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=dbname_here
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  
  <p>But I get <strong>QueryException</strong> could not find driver (SQL: select * from <code>sessions</code></p>
  
  <p>In log file</p>
  
  <pre><code>local.ERROR: PDOException: could not find driver in D:\xampp\htdocs\laravel\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43
  Stack trace:
  #0 D:\xampp\htdocs\laravel\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO-&gt;__construct('mysql:host=loca...', 'root', '', Array)
  </code></pre>
  
  <p>But PDO is already installed</p>
  
  <p>I tried to clear the cache but that didn't solve the problem. Any ideas?</p>
  
  <p>[update]</p>
  
  <p>After an edit by changing "SESSION_DRIVER=file" Now I get</p>
  
  <pre><code>FatalThrowableError
  Call to undefined function openssl_encrypt()
  
  local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function openssl_encrypt() in D:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php:78
  Stack trace:
  #0 D:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Session\EncryptedStore.php(57): Illuminate\Encryption\Encrypter-&gt;encrypt('a:3:{s:6:"_toke...')
  </code></pre>