Repair MongoDB after an unclean shutdown

This was on an Ubuntu 14.04 VM:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb

Leave a Reply

Your email address will not be published.