# MongoDB installation course is OUTDATED

**URL:** <https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252>\
**Category:** Node\
**Created:** [June 1, 2021, 7:28pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252 "2021-06-01T19:28:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshutoshKumarChandel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ashutoshkumarchandel/32/1423_2.png) [@AshutoshKumarChandel](https://forum.codewithmosh.com/u/AshutoshKumarChandel)\
**Post date:** [June 1, 2021, 7:28pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/1 "2021-06-01T19:28:09Z")

</div>

Dear Mosh, for god sake please update the course, I am just not getting the way to install mongodb and connect the same.

This is the course about installing and connecting on MAC

---

<div class="post-metadata">

**Author:** ![kitdev](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kitdev](https://forum.codewithmosh.com/u/kitdev)\
**Post date:** [June 1, 2021, 9:47pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/2 "2021-06-01T21:47:58Z")

</div>

just watch youtube video how install it and go ahead its the same

---

<div class="post-metadata">

**Author:** ![AshutoshKumarChandel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ashutoshkumarchandel/32/1423_2.png) [@AshutoshKumarChandel](https://forum.codewithmosh.com/u/AshutoshKumarChandel)\
**Post date:** [June 2, 2021, 7:47am UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/3 "2021-06-02T07:47:38Z")

</div>

If it was that simple, then why did bought a course from mosh

And i tried doing the same for installation and once i tried connecting to localhost it didn’t work and thats where i am stuck

---

<div class="post-metadata">

**Author:** ![kitdev](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kitdev](https://forum.codewithmosh.com/u/kitdev)\
**Post date:** [June 2, 2021, 11:21am UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/4 "2021-06-02T11:21:52Z")

</div>

i could help you contact me in this mail  
[khiterab31@gmail.com](mailto:khiterab31@gmail.com)

---

<div class="post-metadata">

**Author:** ![Osky](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Osky](https://forum.codewithmosh.com/u/Osky)\
**Post date:** [June 13, 2021, 11:43pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/5 "2021-06-13T23:43:18Z")

</div>

For a paid course, one should get up to date lectures. These are from 2018 and a lot has changed since then.

Mosh clearly states that this course would remain up to date when he advertises on YouTube and this is clearly not the case.

---

<div class="post-metadata">

**Author:** ![AshutoshKumarChandel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ashutoshkumarchandel/32/1423_2.png) [@AshutoshKumarChandel](https://forum.codewithmosh.com/u/AshutoshKumarChandel)\
**Post date:** [June 14, 2021, 1:23pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/6 "2021-06-14T13:23:26Z")

</div>

true, he should at least post it on his youtube channel

---

<div class="post-metadata">

**Author:** ![Ying](https://avatars.discourse-cdn.com/v4/letter/y/fbc32d/32.png) [@Ying](https://forum.codewithmosh.com/u/Ying)\
**Post date:** [September 5, 2021, 2:29pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/7 "2021-09-05T14:29:31Z")

</div>

I installed and uninstalled for almost ten times , because I think something wrong , but not . Everything is right.

I did it like this:

step1: install homebrew . Just copy the code from brew.sh and paste to terminal, like Mosh said.

step2: install mongodb. Check the document, very easy.([docs.mongodb.com](http://docs.mongodb.com))  
brew tap mongodb/brew  
brew install mongodb-community

step3: install mongodb compass. like Mosh said, download according to your OS, and next, next, OK.  
All right.

---

<div class="post-metadata">

**Author:** ![Stan](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stan](https://forum.codewithmosh.com/u/Stan)\
**Post date:** [February 13, 2023, 9:54am UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/9 "2023-02-13T09:54:57Z")

</div>

const mongoose = require(‘mongoose’);

mongoose.connect(‘mongodb://127.0.0.1:27017/playground’,{useUnifiedTopology:true, useNewUrlParser: true})

.then(() =\> console.log(‘Connected to MongoDB…’))

.catch(err=\> console.error(‘Could not connect to MongoDB…’, err));

Use as above instead of Mosh code from movie. This will connect you.

---

<div class="post-metadata">

**Author:** ![karu](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@karu](https://forum.codewithmosh.com/u/karu)\
**Post date:** [February 13, 2023, 12:38pm UTC](https://forum.codewithmosh.com/t/mongodb-installation-course-is-outdated/5252/10 "2023-02-13T12:38:38Z")

</div>

u people dont have time to write correct code and bitch about mosh here. which college has $100 fee???  
mosh is explaining everything so nice and related to real world.  
do you want professors who fuck u up daily on assignments when u missed unecessary semicolon in javacsript!!

not telling you stan but these other people over here
