"admin" and "local" database

1,012 views
Skip to first unread message

Voltron

unread,
Jan 6, 2011, 3:02:32 PM1/6/11
to mongodb-user
I wanted to start afresh, so I decided to delete all the databases on
my mongodb server, I noticed that the "admin" database cannot be
deleted, although no errors occured either on the mongo console or
using the Pymongo driver. I ried a fresh install of Mongodb, no dice.
I wanted to delete admin because I had created a database called admin
for an application called admin.

Is "admin" an internal database? if yes, could someone point me to the
docs so I can read up on what it is used for?

Thanks
Message has been deleted

Andrew Armstrong

unread,
Jan 7, 2011, 6:57:45 AM1/7/11
to mongodb-user
They are both special - admin is the only database you can perform
some commands on to for example lock the database for sync.

The local database (from my understanding) is never replicated between
servers in a replica set (ie, the contents stay local to that replica
server and are never propagated).

Try checking out http://www.mongodb.org/display/DOCS/Admin+Zone and
http://www.mongodb.org/display/DOCS/Commands (notice the 'privileged
commands' area).

Voltron

unread,
Jan 7, 2011, 7:04:28 AM1/7/11
to mongodb-user
Great! Thanks!

On Jan 7, 12:57 pm, Andrew Armstrong <phpla...@gmail.com> wrote:
> They are both special - admin is the only database you can perform
> some commands on to for example lock the database for sync.
>
> The local database (from my understanding) is never replicated between
> servers in a replica set (ie, the contents stay local to that replica
> server and are never propagated).
>
> Try checking outhttp://www.mongodb.org/display/DOCS/Admin+Zoneandhttp://www.mongodb.org/display/DOCS/Commands(notice the 'privileged
Reply all
Reply to author
Forward
0 new messages