Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am in strange kind of problem here. I am installing mongodb, but i am unable to start it. Here are the steps, I have done

1) I have downloaded mongodb (correct version) from their website

2) Created one folder for database

3)used command mongod.exe --dbpath (folder path)

But the whole mongodb crashes and shows me this error

http://i57.tinypic.com/21e6rye.jpg[^]

http://i59.tinypic.com/juaf5w.jpg[^]

can someone help me out?

Thanks
Posted
Updated 10-Sep-15 8:12am
v2

1 solution

Have you installed MongoDB as a service?? If not then please install MongoDB as a windows service. Things will work fine.

Objective-C
mongod --dbpath "c:\mymongodb" --logpath "c:\mymongodb\logs.txt" --install --serviceName "MongoDB"


Make sure you are either inside the bin on MongoDB installation folder or bin is added to the PATH.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900