0

Non-sharded database. 2 replicas in repset.
Connected to mongos and ran db.dropDatabase(), got OK but db is still here.
Connected to mongod and ran db.dropDatabase(), got OK but db is still here.
Shut down all mongos instances, connected to mongod and ran db.dropDatabase(), got OK but db is still here.

  • 1
    How do you verify the database is still there ? – Jaco Nov 23 '15 at 12:38
  • 1
    In addition to how you are checking that the database still exists, it would be helpful to know: what version of MongoDB is this? Is there any data in the database? The output of sh.status(true) and the actual output of show dbs from the mongos and the relevant mongod – Adam C Nov 23 '15 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.