- Storage >
- Storage Engines >
- WiredTiger Storage Engine >
- Change Standalone to WiredTiger
Change Standalone to WiredTiger¶
Starting in version 3.2, WiredTiger is the new default storage engine for MongoDB.
This tutorial gives an overview of changing the storage engine of a standalone MongoDB instance to WiredTiger.
Considerations¶
mongodump
and mongorestore
¶
This tutorial uses the mongodump
and
mongorestore
utilities to export and import data.
MongoDB 3.0 or Greater¶
Procedure¶
Create a data directory for the new mongod
running with WiredTiger.¶
Create a data directory for the new mongod
instance that
will run with the WiredTiger storage engine. mongod
must have read
and write permissions for this directory.
mongod
with WiredTiger will not start with data files created with
a different storage engine.
Start mongod
with WiredTiger.¶
Start mongod
, specifying wiredTiger
as the
--storageEngine
and the newly created data directory for
WiredTiger as the --dbpath
. Specify additional options
as appropriate.
You can also specify the options in a configuration file. To specify the storage engine, use
the storage.engine
setting.
Upload the exported data using mongorestore
.¶
Specify additional options as appropriate. See
mongorestore
for available options.