Reputation: 1134
On MongoDB upgrade from 3.2 to 5.0, I set dbpath same as I set for 3.2, but it is not working. It works when I create a new data folder.
Is there any way we can use older data folder without taking backup with mongodump and restore that after installation?
Upvotes: 0
Views: 131
Reputation: 28326
Short answer: No.
Long answer: Yes, if you are glutton for punishment.
Upgrading from 3.2 to 5.0 without dump/restore would mean taking the following steps, in order:
You will need to read the release notes and upgrade instructions for each version to make sure you allow any data file/index upgrades to complete, remove any unsupported options (like MONGODB-CR authentication) that may be in use, etc.
I suspect that the realistic answer here is that it will be a lot simpler to just dump and restore the data.
Upvotes: 1