In this mongoDB tutorial we will solve detected unclean shutdown c:\data\db\mongod.lock is not empty
STEP 1>
C:\Program Files\MongoDB\Server\3.0\bin>mongod --repair
Calling repair on mongod will release lock mongod.lock (But before calling this please ensure that mongodb services are not started in any other command prompt window)
STEP 2 >
Now, Start Mongo Session >
Cd C:\Program Files\MongoDB\Server\3.0\bin>mongod (for setting up session - details)
STEP 3 >
NOW, OPEN NEW CMD window>
C:\Program Files\MongoDB\Server\3.0\bin>mongo
MongoDB shell version: 3.0.6
connecting to: test (Now, you are CONNECTED)
>
Labels:
MongoDB