Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
1 view
in SQL by (29.3k points)

 When i am trying to execute command \"mongo\" from the bin folder it gives me an error as attached.Please suggest what needs to be done.

1 Answer

0 votes
by (50.2k points)
Please to inform you that after downloading the 'msi' file then you just need to click on install that msi file which will help you to install MongoDB for you, Now after successful installation of MongoDB you need to go to 'c-drive' of your computer and you need to create a folder called 'data' and in that data folder create one more folder called 'db'. once you have done with it open cmd prompt and go to the below address(ie.C:\Program Files\MongoDB\Server\4.2\bin).
Now, run the mongod command if you want to give that config file then you can create under 'C:\Program Files\MongoDB\'. and it will not give you an error then and to check the MongoDB client use 'mongo' command in cmd prompt. That's it it will help you to install MongoDB

Related questions

0 votes
1 answer
0 votes
2 answers
0 votes
2 answers
asked Sep 4, 2019 in SQL by Sammy (47.6k points)
0 votes
2 answers
asked Oct 16, 2019 in Web Technology by Sammy (47.6k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...