2.14.5.4. Setting up a database connection in Drupal

Warning!

With host localhost the connection will not work. Use the host address from data to connect to the database.
Credentials for connection to the database in Drupal 7-8 are specified in config file in lines:
'database' => 'base_data',
'username' => 'логин',
'password' => 'password',
'host' => 'host',
Credentials for connection to the database in Drupal 6 are specified in config file in line:
$db_url = 'mysql://login:password@host/base_data';

Changes can be made using filemanager or any FTPclient.

Content