N
N
nichvlas2020-02-10 14:30:40
linux
nichvlas, 2020-02-10 14:30:40

How to restore the database in modx through the terminal?

There is a site on modx 1.4.0 evo, the Spanish manager once a week makes a full backup of the site with the database.
When trying to restore the database via isp - error: "Restoring the database ended with error 1044"
The database in the backup has the name db.mysql.karkas.
If you download it and change the extension to .sql, it opens in the sublime and you can see that this is a database. Is it possible that the error when restoring in the manager is due to an incorrect base extension?
How to restore the database through the terminal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2020-02-11
@martin74ua

Have you already seen what error 1044 is?
and to restore - just
mysql -u user -p database <dump_file
will ask for the password of the user user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question