Search code examples
mongodb

MongoDB - shutting down with code:62


I followed the MongoDB Docs to run my MongoDB in macOS,

When I start MongoDB using the terminal get this error:

Shutting down with code: 62

enter image description here


Solution

  • Delete the data directory where MongoDB stored and create again.

    rmdir data
    

    And:

    mkdir data/db