exception: db already exists with different case other: [LayerBehaviourTest] me [layerBehaviourTest]

5,834 views
Skip to first unread message

stask

unread,
Jul 29, 2010, 10:44:58 AM7/29/10
to mongodb-user
Hi,
Somehow we managed to create two databases with same name but
different case on our mongodb server (see subject). Is there a way to
workaround this error?
The database is working properly, the error occurs only when we try to
run "show dbs". Also, this error is only happening when we run the
"show dbs" on master, no error on slave.

Version: 1.5.4.
1 master and 1 slave.

Thanks,

Eliot Horowitz

unread,
Jul 29, 2010, 10:48:04 AM7/29/10
to mongod...@googlegroups.com
you should
1) shutdown mongod
2) mv one of the 2 db's raw files into a different directory
3) restart mongod

then you can bring up another mongod with the other data files if you
want to merge

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

stask

unread,
Aug 1, 2010, 3:52:08 AM8/1/10
to mongodb-user
Hi Eliot,
The issue is that we only have files for the first DB
(LayerBehaviourTest), i don't see any raw files for the second db
('layerBehaviourTest'), but the 'show dbs' still produces the error.

Eliot Horowitz

unread,
Aug 1, 2010, 3:57:33 AM8/1/10
to mongod...@googlegroups.com
You may have to restart mongod - looking to see if we've fixed that yet.

stask

unread,
Aug 1, 2010, 11:29:32 AM8/1/10
to mongodb-user
Yep, all good after the restart. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages