Add collection error
Error in creating new Collection
The object reference is not set to an instance of the object.
Type: System.NullReferenceException
Stack: at mangoui.comnavtree.x7vulvsz8pv8voeq5ve (object)
At mangoui.comnavtree.dbaddcollection _ click (objectsender, eventargse)
Looking for half a day always finds the answer:
History
MongoDB
There used to be only one storage engine calledMMAPv1
,MongoDB3.0
The introduction of makesmongodb
There are two engines:MMAPv1
AndWiredTiger
.
MMAPv1
: applicable to allMongoDB
Version,MongoDB3.0
The default engine for
WiredTiger
: only supported64
positionMongoDB
Reason
MongoDB
In3.2
After the default iswiredTiger
The engine, andThe management software matches the previous engine
, so it cannot be used and the memory engine must be reset.Solve
Switching storage engines
MongoDB can switch between the two engines. We can specify the engine type when creating the service.
mongod –storageEngine mmapv1 –dbpath D:\mongo\data