How to connect to DB in Bitrix?

The admin panel of the Bitrix can do sql queries, but when I try to connect from the terminal writes:

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (111)


From a file dbconn.php:

define("DBPersistent", false);
$DBType = "mysql";
$DBHost = "localhost";
$DBLogin = login_223";
$DBPassword = "768648fdnfdjh";
$DBName = "Name_34";
$DBDebug = true;
$DBDebugToFile = false;
define("MYSQL_TABLE_TYPE", "INNODB");


Naturally, to localhost not connected.. just registered it in the config. I tried to specify host on which stands the site, but the result was the same.
July 9th 19 at 11:26
4 answers
July 9th 19 at 11:28
I tried to specify host on which stands the site, but the result was the same.


Many hosting providers cut off the connection to the database from vneski, leaving access only local servers.
You have shared hosting?
maybe that's the point - theo8 commented on July 9th 19 at 11:31
July 9th 19 at 11:30
Show how you connect from the terminal.
July 9th 19 at 11:32
You may need to look for parameters not in dbconn.php and site/bitrix/.settings.php
July 9th 19 at 11:34
.settings.php - you have already given the correct answer.
With the 15.5 version of Bitrix glitch need to manually edit offering file
Since it is not automatically updated, and if vneseni e dbcon you Nuno still rule and .settings.php
In fact writing too-the most, why? this is really a bug or too sideways which to understand normalna person is not possible.

Find more questions by tags 1C-BitrixMySQLPHP