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

Adam Beer
Adam Beer
11,314 Points

MongoDB settings for Windows

Why dont you create video how to use mongo with windows? It is little bit different without homebrew and other commands

I agree with Adam. This video is not clear enough to be understood by beginners trying to follow along the installation on a windows machine. Thank you.

5 Answers

Hannah Mycock
Hannah Mycock
14,899 Points

To help other users with this problem...

The easiest way I found to run Mongo was: Open MongoDB>bin folder Right click mongod>run as Adminstrator Right click mongo>run as Adminstrator

Then your Mongo daemon and Mongo shell will be running. Input commands into the shell. mongod must be running before trying to open the shell. Then you can follow along with Huston

Thanks. This helped a lot.

Adam Beer
Adam Beer
11,314 Points

Hi Ken.

Thank you for help. I solved this course but it wasn't easy. Getting started was difficult. I couldn't use Mongo hacker on windows.

Ken Alger
Ken Alger
Treehouse Teacher

To be clear and fair, this course is a few years old now. MongoDB has evolved since then both technically and with their product offerings. Some that I'd recommend are the DBaaS offering, MongoDB Atlas which means you do not have to set up a local database. Another product is MongoDB Compass which is a GUI interface for MongoDB and has a lot of pretty nice features to help learn and develop with MongoDB.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Adam;

Do you have specific questions about how to get started with MongoDB on Windows?

Ken

Everistus Akpabio
Everistus Akpabio
2,929 Points
  • copy the path C:\Program Files\MongoDB\Server\4.0\bin
  • search for environment variables
  • under user variables, select path and edit
  • click on New and paste the copied path
  • restart cmd and the commands should now work without navigating to the directory

To help others, if you need mongo db for your project you can set it up in the cloud, which is the current trend in the industry, to be able to set a db not locally, like in this video but in the cloud.

You can do this using the free service up to 500 mb - its great for development.

https://cloud.mongodb.com

Ken Alger
Ken Alger
Treehouse Teacher

Indeed. MongoDB Atlas is a wonderful option. Just haven't wanted to push it given the existing Treehouse course and my current position. :-)