A
A
anriko2021-02-01 15:04:56
1C-Bitrix
anriko, 2021-02-01 15:04:56

How to return the database to Bitrix if the directory is deleted?

on hosting, a separate backup of the database and files is made, but there is no complete cast of the site, how does Bitrix do it, how to restore?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Emelyanov, 2021-02-01
@babarun

Look in dbconn.php (.settings.php) for login, password and database name.
mysql -u пользователь_БД -p имя_БД < backup.sql

V
Viktor Taran, 2021-02-01
@shambler81

I have bad news for you
1. you have a strange question, reformulate it more correctly.
2. The database is not stored in the site folder, but in the folder where mysql is installed, where it has its own blackjack.
If you meant you don’t have files, then you need to go to the hosting admin panel and dump the databases because it remained in place (if you didn’t delete it on purpose or didn’t extend the account of this site)
, you can go to phpmyadmin if you remember passwords
if you have root rights can be viewed in mysql > show databases;
well, mysqldump -uroot -ppass mybases > mybases.sql
where the password and logir without spaces from the letters p and u and mybases is your database
Also check if you have a backup in the cloud from Bitrix
To do this, you can put the restore.php file "restore from the cloud" on another account, but you need to know your license number for Bitrix and if you made at least 1 backup, then they will be there.
3. Hosters usually have disk backups, you can ask them to restore it, but then it depends on how anyone has it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question