Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5103

Note that listDatabases must be executed on admin database

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual

    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

        Activity

          People

            Unassigned Unassigned
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 40 weeks ago