[DOCS-5103] Note that listDatabases must be executed on admin database Created: 25/Mar/15  Updated: 30/Oct/23  Resolved: 13/May/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Issue Links:
Related
is related to DOCS-5104 Show example output for listDatabases... Closed
Participants:
Days since reply: 8 years, 40 weeks ago

 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
}



 Comments   
Comment by Githook User [ 13/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5103 DOCS-5104 listDatabases
Branch: v2.6
https://github.com/mongodb/docs/commit/0190fb594088a7a4bd7c7cf48dac78d5aa6a977d

Comment by Githook User [ 13/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5103 DOCS-5104 listDatabases
Branch: master
https://github.com/mongodb/docs/commit/7e73e7ad4e425a0ce822c6e8e67ee3b750e11634

Generated at Thu Feb 08 07:49:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.