Reputation: 265
I accidently closed my mac terminal.due to which i needed to remove my mongod.lock file and then run db --repair My question is do i need to create users again in my database or everything else will remain the same?
Upvotes: 0
Views: 294
Reputation: 367
No. You don't need to create users again. The .lock file is created automatically once the service started and will not gets deleted when the mongo service stopped unexpectedly. You can remove the lock file restart the service. Most of the case you don't need to run repair command, just deleting the lock file is enough
Upvotes: 1