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 trialPuti Larasati
12,367 PointsNo system.indexes in collections and sizes is 0.000GB in MongoDB
Is that okay, or am i missing some steps in installations?
2 Answers
Ken Alger
Treehouse TeacherPuti;
Are you able to run/start your mongod
instance and Mongo Shell?
What response to you get when you run the command show dbs
from the Mongo Shell? If you are using the mongoBasics
collection, what response do you get when you run a show collections
in the Mongo Shell?
Post back when you get a chance.
Ken
Ken Alger
Treehouse TeacherGreat! If you are able to access that information inside the Mongo Shell and switch to the mongoBasics
collection everything seems to be running okay.
Have you loaded any data into the database? I believe the method the course uses is to use the load()
method from inside the Mongo Shell. If you haven't done that it would make sense that your collection sizes are 0 and that you don't have any indexes.
If you post what you have tried to add to your database, or the steps you have taken in the course, it will help a bit to diagnose any issues.
Thanks,
Ken
Ken Alger
Treehouse TeacherPuti;
Were you able to get this resolved?
Ken
Puti Larasati
12,367 PointsPuti Larasati
12,367 PointsYes i believe i can run mongod,
the result of
show dbs
in Mongo shell isand result of
show collection
in mongoBasics collection ispost
-> no system.indexes