今天在mongovue中‘添加集合’出错,错误如下:ErrorincreatingnewCollectiondoesnotsettheobjectreferencetotheinstanceofthe目的。Type:System.NullReferenceExceptionStack:InMangoUI.ComNavTree.x7VuLVsZ8pV8VOeQ5Ve(Object)InMangoUI.ComNavTree.dbAddCollection_Click(Objectsender,EventArgse)然后查资料,终于找到解决办法,看下面的mongo历史MongoDB以前只有一个存储引擎,叫做MMAPv1,MongoDB3.0的引入使得mongodb有两个引擎:MMAPv1和WiredTiger。MMAPv1:适配所有MongoDB版本,MongoDB3.0默认引擎WiredTiger:onlysupports64-bitMongoDB报错原因MongoDB3.2以后默认使用wiredTiger引擎,管理软件匹配之前的引擎,不能使用,必须被重置存储引擎。解决存储引擎切换问题MongoDB和MongoDB可以相互切换。我们可以在创建服务时指定引擎类型。mongod–storageEnginemmapv1–dbpathD:\mongo\data
