2

I am having mongodb 3.0.7 with mmapv1 engine. Now I want to upgrade to Wired trigger. My operating system (OS) is Windows server R2 2012. can any one provide me the detailed steps for upgrading Mongo DB Engine?

Thanks in advance :-)

1 Answers1

3

If you are not using replication.

1 - You need to backup your database:

mongodump -d db_name YOUR_BACKUP_LOCATION

mongodump documentation

2 - Stop MongoDB service

3 - Change configuration

storage:
    dbPath: "YOUR_LOCATION"
    engine: wiredTiger

Use new location. It will be easier to go back if something goes wrong.

4 - Start MongoDB service

5 - Restore database from backup

mongorestore YOUR_BACKUP_LOCATION

mongorestore documentation

Done.

Bonanza
  • 1,601
  • 14
  • 23