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

Commnad "show dbs" does not list all the database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 3.0.2
    • None
    • Internal Client
    • 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.

    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

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

              Dates

                Created:
                Updated:
                Resolved: