Some times when you start the mongo db server then it is not able to start because of following exception:
Solution
In this case just use the mongo db "--repair" command fix this issue.
exception in initAndListen: 12596 old lock file, terminating
Solution
In this case just use the mongo db "--repair" command fix this issue.
- Go to bin directory in mongo db folder i.e E:\MongoDB\bin
- Delete the mongod.lock file. (this step is optional)
- Now open the command prompt and run this command i.e. "E:\mongodb\bin>mongod.exe --repair --dbpath=E:\mongoData\data\db"
- Now start the mongo db service.
- Verify that mongo db is running successfully.
No comments:
Post a Comment