W
W
wiyod2017-10-12 22:30:15
MongoDB
wiyod, 2017-10-12 22:30:15

Why is mongorestore not working?

There is a dump. I run a restore and get an error

2017-10-12T19:25:43.138+0000	Failed: articles.articles: error reading database: not authorized on articles to execute command { listCollections: 1, cursor: { batchSize: 0 } }

Due to the fact that access control is enabled? How then to be? I didn’t understand anything from the instructions (I haven’t seen worse documentation than Mongo) - https://docs.mongodb.com/manual/reference/program/...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-10-13
@wiyod

Well, judging by the error, you need to log in.
mongorestore --port "number port" --username "user" --password "pass" /path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question