title: create a separate database config file in CakePHP 3
body: <p>I'm using CakePHP 3.4</p>
  
  <p>default database settings exists in <code>config/app.php</code></p>
  
  <p>I want to separate out or override database configuration outside app.php say in <code>config/my_db.php</code> and load it in <code>bootstrap.php</code> file.</p>
  
  <p>This setting will now override default database setting that exists in <code>app.php</code> file.</p>
  
  <p>Is there some way to do this ?</p>
  
  <blockquote>
    <p>Edit 2</p>
  </blockquote>
  
  <p><strong>config/my.db.php</strong> file</p>
  
  <pre><code>&lt;?php
  return [
      'my_db' =&gt; [
         'Datasources' =&gt; [
             'default' =&gt; [
                 'className' =&gt; 'Cake\Database\Connection',
                 'driver' =&gt; 'Cake\Database\Driver\Mysql',
                 'persistent' =&gt; false,
                 'host' =&gt; 'localhost',
                 'username' =&gt; 'root',
                 'password' =&gt; 'my_pass',
                 'database' =&gt; 'testdb',
                 'encoding' =&gt; 'utf8',
                 'timezone' =&gt; 'UTC',
                 'flags' =&gt; [],
                 'cacheMetadata' =&gt; true,
                 'log' =&gt; false,
             ]
         ]
      ]
  ];
  </code></pre>
  
  <p><strong>loading in bootstrap.php</strong></p>
  
  <pre><code>Configure::load('my_db', 'default', false);
  </code></pre>