Skip to content

Instantly share code, notes, and snippets.

@BrunoBonacci
Created February 22, 2013 00:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BrunoBonacci/5009911 to your computer and use it in GitHub Desktop.
# stopping the server
sudo /etc/init.d/mongod stop
# now replace local.n files
cd /var/lib/mongo/local
sudo rm -fr local.*
sudo rename 's/new-local/local/g' new-local.*
# restarting the server
sudo /etc/init.d/mongod start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment