Answer the question
In order to leave comments, you need to log in
Why does the local Bitrix not connect to the remote database?
Updated software (php and mysql) on the server. After that, the local copy (on OpenServer'e), which connected to the database on this server, stopped working. Issues
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\db\mysqliconnection.php:122
#1: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, object)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\db\connection.php:330
#2: Bitrix\Main\DB\Connection->query(string)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\config\option.php:226
#3: Bitrix\Main\Config\Option::load(string, NULL)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\config\option.php:53
#4: Bitrix\Main\Config\Option::get(string, string, string)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\httprequest.php:370
#5: Bitrix\Main\HttpRequest->prepareCookie(array)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\httprequest.php:68
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\httpapplication.php:46
#7: Bitrix\Main\HttpApplication->initializeContext(array)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\lib\application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\include.php:23
#9: require_once(string)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\include\prolog_before.php:14
#10: require_once(string)
C:\OSPanel\domains\sitename.local\online\src\bitrix\modules\main\include\prolog.php:10
#11: require_once(string)
C:\OSPanel\domains\sitename.local\online\src\bitrix\header.php:1
#12: require(string)
C:\OSPanel\domains\sitename.local\online\src\index.php:2
Answer the question
In order to leave comments, you need to log in
The question is closed. iptables was apparently overloaded and closed ports for external connections.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question