Cannot start MongoDB: System error 1067 in Windows

前端 未结 7 1963
一个人的身影
一个人的身影 2021-02-12 11:24

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         


        
7条回答
  •  再見小時候
    2021-02-12 11:39

    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:

    1. Remove all mongo services from pc (add/remove programs).
    2. Go to program files and backup the MongoDB folder.
    3. Remove the MongoDB folder.
    4. Re-install mongo db.

    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
    

提交回复
热议问题