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

Commnad "show dbs" does not list all the database

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.2
    • Component/s: Internal Client
    • Labels:
      None
    • ALL
    • 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.

      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.

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

              Created:
              Updated:
              Resolved: