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

Commnad "show dbs" does not list all the database

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.2
    • 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

        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: