title: CakePHP SQLSTATE[HY000][14] error
body: <p>I'm trying to upgrade my current CakePHP 2.x application to 3.x.   </p>
  
  <p>I fixed namespace and folder structure issues. Now I have problems with database. In my test server, I created same MySQL database and grant access to users. Then I changed <code>config\app.php</code> configuration file. But when I try my application I get following error. What would be the problem ? It seems like Cakephp tries to use Sqlite but I use MySQL ?</p>
  
  <p>Inside <code>config\app.php</code></p>
  
  <pre><code>'Datasources' =&gt; [
      'default' =&gt; [
          'className' =&gt; 'Cake\Database\Connection',
          'driver' =&gt; 'Cake\Database\Driver\Mysql',
          'persistent' =&gt; false,
          'host' =&gt; 'localhost',
          /**
           * CakePHP will use the default DB port based on the driver selected
           * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
           * the following line and set the port accordingly
           */
          //'port' =&gt; 'nonstandard_port_number',
          'username' =&gt; 'myuser',
          'password' =&gt; 'mypass',
          'database' =&gt; 'mydatabase',
          'encoding' =&gt; 'utf8',
          'timezone' =&gt; 'UTC',
          'cacheMetadata' =&gt; true,
  
          /**
           * Set identifier quoting to true if you are using reserved words or
           * special characters in your table or column names. Enabling this
           * setting will result in queries built using the Query Builder having
           * identifiers quoted when creating SQL. It should be noted that this
           * decreases performance because each query needs to be traversed and
           * manipulated before being executed.
           */
          'quoteIdentifiers' =&gt; false,
      ],
  ],
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>Error: [PDOException] SQLSTATE[HY000] [14] unable to open database file
  Request URL: /mycontroller/
  Stack Trace:
  #0 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/PDODriverTrait.php(48): PDO-&gt;__construct('sqlite:/var/www...', NULL, NULL, Array)
  #1 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/Sqlite.php(61): Cake\Database\Driver\Sqlite-&gt;_connect('sqlite:/var/www...', Array)
  #2 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Schema/BaseSchema.php(46): Cake\Database\Driver\Sqlite-&gt;connect()
  #3 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Dialect/SqliteDialectTrait.php(169): Cake\Database\Schema\BaseSchema-&gt;__construct(Object(Cake\Database\Driver\Sqlite))
  #4 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(52): Cake\Database\Driver\Sqlite-&gt;schemaDialect()
  #5 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(44): Cake\Database\Schema\Collection-&gt;__construct(Object(Cake\Database\Connection))
  #6 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php(319): Cake\Database\Schema\CachedCollection-&gt;__construct(Object(Cake\Database\Connection), true)
  #7 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/debug_kit/src/Model/Table/LazyTableTrait.php(40): Cake\Database\Connection-&gt;schemaCollection()
  #8 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/debug_kit/src/Model/Table/RequestsTable.php(43): DebugKit\Model\Table\RequestsTable-&gt;ensureTables(Array)
  #9 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/ORM/Table.php(285): DebugKit\Model\Table\RequestsTable-&gt;initialize(Array)
  #10 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/ORM/TableRegistry.php(196): Cake\ORM\Table-&gt;__construct(Array)
  #11 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/debug_kit/src/Routing/Filter/DebugBarFilter.php(186): Cake\ORM\TableRegistry::get('DebugKit.Reques...')
  #12 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Event/EventManager.php(389): DebugKit\Routing\Filter\DebugBarFilter-&gt;afterDispatch(Object(Cake\Event\Event), Object(Cake\Network\Request), Object(Cake\Network\Response))
  #13 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Event/EventManager.php(355): Cake\Event\EventManager-&gt;_callListener(Array, Object(Cake\Event\Event))
  #14 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Event/EventManagerTrait.php(78): Cake\Event\EventManager-&gt;dispatch(Object(Cake\Event\Event))
  #15 /var/www/vhosts/example.com/httpdocs/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(92): Cake\Routing\Dispatcher-&gt;dispatchEvent('Dispatcher.afte...', Array)
  #16 /var/www/vhosts/example.com/httpdocs/webroot/index.php(37): Cake\Routing\Dispatcher-&gt;dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
  #17 {main}
  </code></pre>