A
A
anriko2020-11-23 22:55:40
1C-Bitrix
anriko, 2020-11-23 22:55:40

Why is there no connection to the database when restoring from a backup?

[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost]: (1049) Unknown database 'u1032344_playmarketgames' (400)
/var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/db/mysqliconnection.php:65
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/data/connection.php:53
#1: Bitrix\Main\Data\Connection->getResource()
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/db/mysqlisqlhelper.php:21
#2: Bitrix\Main\DB\MysqliSqlHelper->forSql(string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/config/option.php:193
#3: Bitrix\Main\Config\Option::load(string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/config/option.php:38
#4: Bitrix\Main\Config\Option::get(string, string, string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/httprequest.php:394
#5: Bitrix\Main\HttpRequest->prepareCookie(array)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/httprequest.php:71
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/httpapplication.php:48
#7: Bitrix\Main\HttpApplication->initializeContext(array)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/lib/application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/include.php:22
#9: require_once(string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
  /var/www/u1032344/data/www/playmarketgames.ru/bitrix/header.php:1
#12: require(string)
  /var/www/u1032344/data/www/playmarketgames.ru/index.php:2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-11-24
@anriko

Check if the database exists with that name.
Check that the database is entered in /bitrix/php_interface/dbconn.php and /bitrix/.settings.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question