After setting up MongoDB service on Windows Server 2008 R2 this error was raised.
C:\\mongodb\\bin>net start MongoDB
The Mongo DB service is starting.
The Mo
For anyone who faced this error on 2020, with version 4.4.1 of mongo, and the accepted answer not solve the issue, here is what I've done:
And it should work.
UPDATE for January 2021, the following saved me without re-installing MongoDB and losing all my data:
C:\Program Files\MongoDB\Server\4.4\bin>mongod --dbpath "C:\Program Files\MongoDB\Server\4.4\data" --repair