What does "show dbs" output? Additionally, how much data do you have in your other dbs? If you don't have a prohibitive amount of data, you could mongoexport or mongodump every db except the bad one, and then delete the data files and reimport them.
On Monday, November 19, 2012 5:40:58 AM UTC-5, Mathieu Chocat wrote:
> var name = db.getMongo().getDBs().databases[2].name
> var bad_db = db.getSisterDB(name)
I've tried this, but mongodb don't find the file on disk, in console drop is Ok, in log nothing, but the database is not removed (may be because special char has been replaced by '?' on disk since i've migrated mongo 2.0.7 => 2.2.1 and resync).
To delete the file, i don't know the reaction of mongo with a replicaset (risk of crash with oplog replay or resync if i don't stop all the replica and i can't stop all)
> Do all members of the replica set have the bad database?
Yes