2.14.5.4. Configure database connection in Drupal

Attention!

The connection will not work with the localhost host. The host address must be taken from the database connection credentials.
Database connection credentials in Drupal 7-8 are specified in the configuration file in the lines:
'database' => 'database',
'username' => 'login',
'password' => 'password',
'host' => 'host',
Database connection credentials in Drupal 6 are specified in the configuration file in the line:
$db_url = 'mysql://username:password@host/database';

Changes can be made using the file manager or any FTP client.

Content