Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18313

Commnad "show dbs" does not list all the database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: Internal Client
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Steps:
      1.) show dbs
      2.) use <database_name> – <database_name> should not exists, and if it does, it should not have any collections or users associated with it.
      3.) show dbs

      Now, when step 3 is executed, it doesn't show database created in step 2.

      Show
      Steps: 1.) show dbs 2.) use <database_name> – <database_name> should not exists, and if it does, it should not have any collections or users associated with it. 3.) show dbs Now, when step 3 is executed, it doesn't show database created in step 2.

      Description

      When user says "use <database_name>", if database with that name doesn't exists, mongodb creates the database and switches to it. If database already exists, mongodb only switches to asked database in the command.

      if user doesn't create any collection or add user to newly created database, mongodb doesn't show newly created database when "use <databae_name>" command is issued.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sam.kleinman Sam Kleinman (Inactive)
              Reporter:
              dsdave Darshit
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: