Created
December 6, 2012 14:33
-
-
Save jestan/4224839 to your computer and use it in GitHub Desktop.
Mongo DB Repair
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mongo DB Repair | |
1) Remove mongod.pid file or mongod.lock file | |
2) Run './mongod --repair --dbpath <db-path>' | |
3) Run './mongo' | |
//From Mongo Shell | |
> db.repairDatabase(); | |
//Checking Data Integrity | |
> use <db-name>; | |
> db.<collection-name>.validate(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment