Answer the question
In order to leave comments, you need to log in
How to connect to the database in Bitrix?
I can make sql queries from the Bitrix admin panel, but when I try to connect from the terminal, I write:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (111)
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");
Answer the question
In order to leave comments, you need to log in
I tried to specify the host on which the site is located, but the result was the same.
Perhaps you need to look for settings not in dbconn.php but in site/bitrix/.settings.php
.settings.php - you've already been given the correct answer.
Since version 15.5, Bitrix has a glitch, you need to manually edit this file
. Since it is not automatically updated, and when you add it to dbcon, you also need to edit .settings.php
In fact, entering the same thing, why? this is really a bug or a too cunning move by a knight that is not possible for a normal person to understand.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question