Add collection 错误
Error in creating new Collection
未将对象引用设置到对象的实例。
Type: System.NullReferenceException
Stack: 在 MangoUI.ComNavTree.x7VuLVsZ8pV8VOeQ5Ve(Object )
在 MangoUI.ComNavTree.dbAddCollection_Click(Object sender, EventArgs e)
Error in creating new Collection
未将对象引用设置到对象的实例。
Type: System.NullReferenceException
Stack: 在 MangoUI.ComNavTree.x7VuLVsZ8pV8VOeQ5Ve(Object )
在 MangoUI.ComNavTree.dbAddCollection_Click(Object sender, EventArgs e)
找半天总于找到答案了:
历史
MongoDB
以前只有一个存储引擎,叫做MMAPv1
,MongoDB3.0
的推出使得mongodb
有了两个引擎:MMAPv1
和WiredTiger
。MMAPv1
:适应于所有MongoDB
版本,MongoDB3.0
的默认引擎WiredTiger
:仅支持64
位MongoDB
原因
MongoDB
在3.2
之后默认的是wiredTiger
引擎,而管理软件匹配的还是之前的引擎
,所以无法使用,必须重置存引擎。解决
切换存储引擎
MongoDB两种引擎可以互相切换,我们可以在创建服务的时候指定引擎类型。