R
R
Rustem Vorozheikin2015-05-21 15:57:24
MongoDB
Rustem Vorozheikin, 2015-05-21 15:57:24

How to restore admin database in mongodb?

Good afternoon.
Accidentally dropped admin database in mongodb on vps with db.dropDatabase() command.
Now I cannot copy the databases to the local machine using the db.admin.command(...) command.
How to do it? How to restore this database (admin)? Reinstall didn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2015-05-21
@lega

Dump all databases, clear the folder, restart. Monga at startup creates all files if the folder is empty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question