MongoDB “The default storage engine 'wiredTiger' is not available with this build of mongod ” + “ ..no /data/db folder..”

前端 未结 3 1227
梦谈多话
梦谈多话 2021-01-07 08:29

After first installing MongoDb and running the mongod command in the C:\\Program Files\\MongoDB\\Server\\3.2\\bin> directory, I get the error:<

3条回答
  •  耶瑟儿~
    2021-01-07 09:03

    I did the following:

    1. Ran Node.js command prompt as Administrator
    2. Made a C:\data\db directory
    3. Ran "cd C:\Program Files\MongoDB\Server\3.2\bin" command
    4. Executed "mongod --storageEngine=mmapv1 --dbpath C:\data\db"

    i.e, looked like the following :

    *** C:\Program Files\MongoDB\Server\3.2\bin> mongod --storageEngine=mmapv1 --dbpath C:\data\db


    PS: Sorry people, but the reason for answering my own question is that I hope this will help someone else if they ever are in my position.

    Please refer to this question's answers(I borrowed from there) :

    MongoDB cannot start server: The default storage engine 'wiredTiger' is not available with this build of mongod

提交回复
热议问题