Drupal ignoring changes to settings.php I made a copy of one of my drupal sites and I'm attempting to set it up to use a different database but for some reason it's ignoring changes to my settings.php file. My settings.php file is in sites/default/settings.php and contains the following

$databases['default']['default'] = array (
        'database' =&gt; 'my_db_database',
        'username' =&gt; 'my_db_user',
        'password' =&gt; 'my_db_password',
        'host' =&gt; 'my_db_host',
        'port' =&gt; '3306',
        'driver' =&gt; 'mysql',
        'prefix' =&gt; '',
        'collation' =&gt; 'utf8mb4_general_ci',
);


However the changes I made to it don't seem to take. It's still using the old database. As a test I even put in incorrect information and tried commenting everything out to see if I can break it, but there was no effect. I also checked to make sure there was no local.settings.php file. 

Is there something that needs to be done to reload the settings.php file. If not is there a way to see what settings.php file is being used in case there's another file overriding it?

UPDATE: Turns out the issue was a dummy mistake on my part. The domain was pointing to the wrong server. However I'm not closing this question because I believe these answers could be helpful to others in similar situations.
Check with including namespace.  Also, check if any other code override configuration or do you enabled settings.local.php. Add this code to the bottom of settings.php

 $databases['default']['default'] = array (
  'database' =&gt; 'my_db_database',
  'username' =&gt; 'my_db_user',
  'password' =&gt; 'my_db_password',
  'prefix' =&gt; '',
  'host' =&gt; 'localhost',
  'port' =&gt; '3306',
  'namespace' =&gt; 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' =&gt; 'mysql',
);