220.127.116.11. Setting up a database connection in Drupal
localhostthe 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',