Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question