Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/command/listDatabases/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/search/?query=listdatabases
*Screen Resolution*: 1920 x 1200
*repo*: docs
*source*: reference/command/listDatabases
*Location*: http://docs.mongodb.org/manual/reference/command/listDatabases/ *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/search/?query=listdatabases *Screen Resolution*: 1920 x 1200 *repo*: docs *source*: reference/command/listDatabases
Description
Re: manual/reference/command/listDatabases.txt
The documentation should note that this command can only be executed on the admin database.
$ mongo
|
MongoDB shell version: 3.0.0
|
connecting to: test
|
> db.runCommand( { listDatabases: 1 } )
|
{
|
"ok" : 0,
|
"errmsg" : "listDatabases may only be run against the admin database.",
|
"code" : 13
|
}
|
Attachments
Issue Links
- is related to
-
DOCS-5104 Show example output for listDatabases command
-
- Closed
-