What is the best way to upgrade MongoDB?

Say I have 3.2.6 and I want to upgrade to 4.2

Can I just use mongodump and mongorestore? Or are there any intricacies to it?


I would follow one of these documents that are published by MongoDB.

  • Thanks. That's way I am doing it. But it's so much hassle, so I was wondering why not just dump and restore? Do you see any problem in that? – SomeGuyWhoCodes Nov 2 '19 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.