MongoDB “The default storage engine 'wiredTige

2020-03-07 06:17发布

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

"The default storage engine 'wiredTiger' is not available with this build of mongod"

And then a second error

" ..no /data/db folder..".

Running windows 10 32-bit.

EDIT: I had two different problems, (as the question title says) I combined them to solve my problem. I hope this will serve as a reference to other newbies if they are in the same boat. So thanks for the down votes, people :)

3条回答
别忘想泡老子
2楼-- · 2020-03-07 06:53

Just execute this command in your Mongo/bin directory:

mongod --storageEngine=mmapv1 --dbpath [your-path]
查看更多
够拽才男人
3楼-- · 2020-03-07 07:08

In terms of " ..no /data/db folder..". error you have to create this directory manually on C:\ so the path of the directory is C:\data\db

查看更多
走好不送
4楼-- · 2020-03-07 07:14

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

查看更多
登录 后发表回答