0

MongoDB shuts down with Code 100

I followed the MongoDb Docs to set up my first MongoDB,
When I start MongoDB using the command

C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe

It shows the following error!
MongoDB shuts down with Code 100

Mongodb Database Add a comment
levi
asked Oct 11 2021

Answer

0

MongoDB needs a folder to store the database.
Create a C:\data\db\ directory:

`mkdir C:\data\db`

and then start MongoDB:
C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe

Add a comment
linuxhelp
asked Oct 11 2021
edited Oct 11 2021
Post your Answer