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 trial

Databases Mongo Basics Getting Started With MongoDB Setting Up MongoDB

lionelsurmont
lionelsurmont
7,092 Points

show dbs, use new_db command doesn't work

Hi!

When I run "show dbs", Git Bash returns "command not found". Why is that?

Same problem for "use mongoBasics".

3 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi Lionel,

It sounds like Mongo hasn't installed properly. Instructions to install vary on what platform you're using. I work with Mongo on windows and use Windows Command prompt to run mongo commands. . For some reason show and use don't work on Git bash, even though I know Mongo is installed on my machine.

Take a look at this page which the video in the Mongo Basics course for setting up Mongo.

https://teamtreehouse.com/library/mongo-basics/getting-started-with-mongodb/setting-up-mongodb.

There's also some useful links in the teachers notes for setting up Mongo on Homebrew for Mac and an installation guide for Windows.

lionelsurmont
lionelsurmont
7,092 Points

Thanks it now works. I just switched from Git bash to the Windows Command Prompt.

souleste
souleste
866 Points

show does not work with my windows command line either....