Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLeah Grossart
1,335 PointsLocal db not connected with Mongodb setup.
I am getting the following:
show dbs local 0.000GB mongoBasics 0.000GB
3 Answers
Ken Alger
Treehouse TeacherLeah;
I'm not understanding your question. Would you mind expanding on what the issue or question is?
Ken
Jonathan Leon
18,813 PointsI'll expand, as it happens to me too ATM
In the video : Setting up mongo DB in mongo basics course, when the instructor types show dbs in the console, it prints out local 0.0078GB indicating the local DB is connected to the folder your mongo server runs.
I'm getting 0.0000 and id like to know wether its because im on windows, or because mongodb was updated since the video or maybe even i did something wrong
thanks
Ken Alger
Treehouse TeacherWhich version of MongoDB are you running? I am on Windows 10, running MongoDB 3.2 with the wiredTiger storage engine and when I run show dbs
in the console I get a variety of sizes for my databases, based on the size of the database.
Several of them don't have anything, or much of anything, in them and report 0.000GB
. Others that have data show the total collection size.
My guess would be that in the course, the 0.0078GB
reading is due to the collection already existing with some data whereas on your local system the collection is either empty or doesn't have enough data to register in the 0.000GB
reading.
Post back with further questions.
Happy coding, Ken