The MONGO database prompts the "object references not set to an instance of an object" solution when you create a table with Mongovue

Source: Internet
Author: User
Tags mongodb mongodb version

First, the question
After installing the 3.4 mongdb, I randomly downloaded a Mongovue client online, unable to view the default database local collection, and the following issue occurred when creating the collection

Error in creating new Collection
Object references are not set to an instance of an object.
Type:System.NullReferenceException
Stack: In MangoUI.ComNavTree.dbAddCollection_Click (Object sender, EventArgs e)
After searching on the internet, some people said it was MongoDB version of the reason, replaced by 2 can be, too lazy to change, continue to find ways to eventually switch the storage engine, MongoDB defaults to the Wiredtiger engine after 3.2, and the management software matches the previous engine, so it cannot be used, and the presence engine must be reset.
Second, Reason:

Before 2015/3/17, MongoDB had only one storage engine, called mmap,mongodb3.0 's launch, which made MongoDB have two engines: MMAPv1 and Wiredtiger. MMAPV1: Adapts to all MongoDB versions, MongoDB3.0 's default engine Wiredtiger: Only 64-bit MONGODB supported

MongoDB two engines can switch to each other, and we can specify the engine type when creating the service.

Third, the solution steps:

To reset the storage engine:
CD D:\MongoDB\bin

Reset Storage Engine Statements
Mongod–storageengine Mmapv1–dbpath D:\MongoDB\data2

* Note: The database location must be re-specified, as the original D:\MongoDB\data reset the storage engine when the name must be replaced, D:\MONGODB\DATA2
After completion the client uses the command TestDB to create its own database

re-use Mongovue link TestDB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.