Answers for "i used purge and reinstalled mongodb, but my full db data lost"

Go
0

mongo remove all dbs

mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
Posted by: Guest on September-14-2020

Code answers related to "i used purge and reinstalled mongodb, but my full db data lost"

Browse Popular Code Answers by Language