简体   繁体   中英

How to Upgrade Mongo DB engine mmapv1 to Wired trigger?

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 :-)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM