Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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

I get the following error enter image description here

2 Answers

0 votes
by (106k points)

MongoDB shuts down with Code 100 in this case 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

0 votes
by (50.2k points)

You just need to create a directory with the help of the following command:

mkdir C:\data\db

and then start MongoDB:

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

Related questions

0 votes
1 answer
asked Mar 15, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
asked Feb 19, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...