W
W
WebforSelf2021-03-07 15:23:41
1C-Bitrix
WebforSelf, 2021-03-07 15:23:41

What is mysql connection in .settings.php bitrix responsible for?

Transferred the site to another domain, created a new database and imported it there.
Renamed access to the file
/bitrix/php_interface/dbconn.php

The old database was also on this hosting, edited the text and so on, then there was a problem with saving prices.
Found out that /bitrix/.settings.php contains accesses from the old database
. Renamed it to a new one and everything worked.

I look at the site, it seems that what I edited remains the same. The question is, what is the connection with the database in
/bitrix/.settings.php

for?

In general, what should you see now? after changing /bitrix/.settings.php
Is it possible to add something in the texts again and the goods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
no_one_safe, 2021-03-07
@no_one_safe

Bitrix is ​​a very old cms. Part of the functionality is deprecated, but is not removed for reasons of backward compatibility. The old functionality takes the connection from dbconn.php, the new one already from .settings.php
But often the old code interacts with the new one. Therefore, the connection is indicated in 2 places. In 10 years it will probably be in the bottom place when everything is rewritten :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question