<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:54:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-7472] Comment on: &quot;show dbs&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-7472</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;I am new to mongodb currently I&apos;m learning from docs and tutorials available online, I need a clarification in certain Mongodb &apos;show dbs&apos; command. I&apos;m pretty sure that it would list all the databases that we&apos;ve created.&lt;/p&gt;

&lt;p&gt;but there is a slight problem I&apos;m facing with that command&lt;br/&gt;
1. I&apos;ve created a db using the following command&lt;br/&gt;
use mytestdb&lt;br/&gt;
2. Then I tried to view the current db using command &lt;br/&gt;
db &lt;br/&gt;
It shown my database name mytestdb&lt;br/&gt;
3. finally when I&apos;m trying to see the list of available databases i&apos;ve created using &lt;br/&gt;
show dbs &lt;br/&gt;
but still the list didn&apos;t consist of my recently created database &quot;mytestdb&quot;&lt;/p&gt;

&lt;p&gt;I tried several time but the result is same, I searched about this similar problem in the internet I got two solutions which worked for me&lt;br/&gt;
1. Restart mongo client &lt;br/&gt;
2. Repair the db using db.repairDatabase() command&lt;/p&gt;

&lt;p&gt;Though it worked fine I just need to know why its not refreshing in the real time, is it a feature or a bug, if its a feature I just need to know why and if I am not doing something right please educate me. I&apos;m so much fascinated to learn mongodb completely.&lt;/p&gt;

&lt;p&gt;Thank you so much in advance&lt;/p&gt;
</description>
                <environment>Operating System = Windows 8.1 32 bit (Virtual Box) &lt;br/&gt;
MongoDB version = 3.2.3&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;https://docs.mongodb.org/manual/reference/mongo-shell/&quot;&gt;https://docs.mongodb.org/manual/reference/mongo-shell/&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;https://docs.mongodb.org/manual/search/?query=show%20dbs&quot;&gt;https://docs.mongodb.org/manual/search/?query=show%20dbs&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1366 x 743&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: reference/mongo-shell&lt;br/&gt;
</environment>
        <key id="273790">DOCS-7472</key>
            <summary>Comment on: &quot;show dbs&quot;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="ravind.kumar">Ravind Kumar</assignee>
                                    <reporter username="xgen-internal-docs">Docs Collector User</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Sun, 20 Mar 2016 07:00:39 +0000</created>
                <updated>Fri, 3 Nov 2017 11:18:29 +0000</updated>
                            <resolved>Thu, 24 Mar 2016 13:52:03 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1209435" author="ravind.kumar" created="Mon, 21 Mar 2016 13:19:53 +0000"  >&lt;p&gt;Hello Sundar,&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;use db&lt;/tt&gt; command switches to the database whether it exists or not. The database exists only after a collection is created within it.&lt;/p&gt;

&lt;p&gt;The relevant paragraph can be found in &lt;a href=&quot;https://docs.mongodb.org/manual/core/databases-and-collections/#create-a-database&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this section&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If a database does not exist, MongoDB creates the database when you first store data for that database.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/db.createCollection/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;db.createCollection()&lt;/a&gt; method creates a collection within the current active database. You can also use the &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/db.collection.insertOne&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;db.collection.insertOne&lt;/a&gt; or &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/db.collection.insertMany&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;db.collection.insertMany&lt;/a&gt; methods to create the collection as a part of the insertion process.&lt;/p&gt;

&lt;p&gt;Please let us know if this answers your question. We&apos;re happy to hear about your interest in MongoDB. If you haven&apos;t already, check out &lt;a href=&quot;https://university.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://university.mongodb.com/&lt;/a&gt; for lessons on using MongoDB. The M101 courses are a good place to start.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Mar 2016 13:19:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 47 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 47 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-docs</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmwrb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsjlk7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrzitb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>