Commnad "show dbs" does not list all the database

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Darshit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: