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!
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 trial
Pierre Smith11,842 Points
when initiating mongo how do you navigate to a particular database
if I have multiple databases for different projects inside mongoDB how do I navigate in and out of each one?
Ken AlgerTreehouse Teacher
As Iain Simmons mentioned, inside the Mongo Shell you can use the
Assuming you know the database name you want to use when you are starting the Mongo Shell, you can call
from the command line and when the Mongo Shell starts it will be connected to the <database>.