I am unable to start my mongoDB after an unclean system shutdown. There is a mongod.lock with a size of 1 KB. I want to delete this file and then repair the mongoDB. I deleted the file and tried the command
mongod --dbpath "%ProgramData%\mongodb\data\db" --repair
But I am getting an error message...
I STORAGE [initandlisten] exception in initAndListen: 72 Requested option conflicts with current storage engine option for directoryPerDB; you requested false but the current server storage is already set to true and cannot be changed, terminating.....
Please assist...
Try to add --directoryperDB
like this:
mongod --dbpath "%ProgramData%\mongodb\data\db" --directoryPerDB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With