V
V
Vladislav Startsev2016-04-14 10:10:15
CMS
Vladislav Startsev, 2016-04-14 10:10:15

Where else can I set the database connection settings in Drupal7?

Actually, in Drupal, the settings for the database are written in the files ../sites/default/ -> settings.php or default.settings.php
However, if I change the password for the database user, then change it in settings.php, then the site goes down, because . there is no connection, I change the user password to the old one, everything is fine. If you do not change anything in the database, but delete the next line completely, then again everything is fine, i.e. The setting is written somewhere else, only where, until I found it. Maybe there are Drupal experts who prescribed protection beyond those files?

$databases = array (
  'default' => 
  array (
    'default' => 
    array (
      'database' => 'БД',
      'username' => 'Юзер',
      'password' => '*Пароль*',
      'host' => 'localhost',
      'port' => '',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Startsev, 2016-06-25
@esvlad

In general, I blunted it then, and as a result, only the local file was changed, and it was not written on the server because of read-only rights.

C
claymor, 2016-04-15
@claymor

Database settings can be found in any file connected from settings.php. Scroll through the contents of the file looking for require and include.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question