WEBVTT

00:01.500 --> 00:07.590
Hey did everyone this year and welcome to the video of how to install MongoDB on Windows ten.

00:07.620 --> 00:09.450
Now this video is exactly the same.

00:09.450 --> 00:15.030
If you are having any other operations or slide here and there, it's just the same installation process.

00:15.180 --> 00:19.980
Now again, the installation process for Windows is much more easier as compared to the Linux or the

00:19.980 --> 00:20.740
Mac OS.

00:20.760 --> 00:25.200
So without wasting any more time, let's directly jump into the installation process.

00:25.230 --> 00:27.050
Now, installation is straightforward.

00:27.060 --> 00:35.130
First and foremost, go to MongoDB and click on this top blue, top green button that says Get MongoDB.

00:35.160 --> 00:40.680
Once you go on to that, what we require is actually not the cloud but the server addition because we

00:40.680 --> 00:44.070
want to run MongoDB locally on our system.

00:44.100 --> 00:49.740
Now again, I would like to recommend you that MongoDB only supports the 64 bit architecture and in

00:49.740 --> 00:56.220
fact, most of the people are now switching to 64 bit architecture if still you are on Windows or any

00:56.220 --> 00:57.430
other on a 32 bit.

00:57.450 --> 01:00.660
Please go ahead and switch that and we can see that's the right version.

01:00.660 --> 01:05.880
So once you click on the download, it's going to download the MSI Microsoft Installer for you.

01:05.970 --> 01:09.220
And that's basically what we need on the base end.

01:09.240 --> 01:13.560
Now we're going to put the star to the installation process and then I'll walk you some of the gotchas,

01:13.560 --> 01:15.230
like where the problem hits up.

01:15.240 --> 01:19.800
So I have already downloaded this one to save some of us our time.

01:19.800 --> 01:25.620
So we're going to just download, I'm going to just minimize it for a moment and I have got this one

01:25.620 --> 01:29.370
here, so I'm going to just make it up and running with MongoDB.

01:29.400 --> 01:30.070
There we go.

01:30.090 --> 01:31.260
Hit the run there.

01:31.260 --> 01:36.090
And the installation is pretty straightforward, just like you have installed any other thing on windows.

01:36.090 --> 01:37.110
It just always next.

01:37.110 --> 01:37.350
Next.

01:37.350 --> 01:37.760
I agree.

01:37.770 --> 01:38.040
Click.

01:38.040 --> 01:38.580
Okay.

01:38.670 --> 01:39.630
So next.

01:39.960 --> 01:44.940
Of course I want to accept the terms and agreement in case you want to go ahead and read all of that,

01:44.940 --> 01:47.010
I would like to agree for all of it.

01:47.070 --> 01:48.040
Click on next.

01:48.060 --> 01:51.240
Now we got two options complete and custom for most users.

01:51.240 --> 01:56.940
In fact, 95% of the user complete is actually what we require we're going to hit on complete.

01:56.940 --> 01:57.770
And there we go.

01:57.780 --> 02:01.650
Now make sure you understand one thing that it is run service.

02:01.650 --> 02:07.440
As network service users, you always want to check that and also you want to keep this check mark there

02:07.440 --> 02:10.380
which says install MongoDB as a service.

02:10.380 --> 02:17.400
What it will allow you to do is allow you MongoDB to run as a service and this is exactly what we want.

02:17.430 --> 02:20.190
Also note down these directories here.

02:20.190 --> 02:22.770
It's getting installed on C Drive program files.

02:22.770 --> 02:25.200
We might need to go there later on.

02:25.200 --> 02:26.460
So just click on next there.

02:26.460 --> 02:30.780
Just remember that and it says I want to install MongoDB campus as well.

02:30.780 --> 02:35.100
We're going to click on next and we don't mind if it installs the campus as well.

02:35.190 --> 02:35.640
Okay.

02:36.300 --> 02:42.360
So by the time it does a job, I would like to and make sure if it prompts any security warnings or

02:42.360 --> 02:43.620
anything, just allow it.

02:43.620 --> 02:44.550
It's totally fine.

02:44.550 --> 02:45.780
It's totally okay.

02:46.080 --> 02:49.860
So now in the meantime, it's copying the file and doing the installation.

02:49.860 --> 02:53.430
I would like to point your focus on to some documentation.

02:53.430 --> 02:55.890
So click on this upper link which says Docs.

02:56.130 --> 03:01.560
Docs are a little bit like they are properly arranged, but sometimes it's hard to find for the beginner

03:01.560 --> 03:03.690
the exact right point where they want to go.

03:03.690 --> 03:09.300
So click on this MongoDB server because that's exactly what we are looking for and we are looking for

03:09.300 --> 03:13.560
the installation instruction here and please pardon my cursor some time.

03:13.560 --> 03:14.460
It blinks on window.

03:14.460 --> 03:20.220
I don't know why and we want to install the community edition, so we are going to look into the documentation

03:20.220 --> 03:21.540
of community addition.

03:21.660 --> 03:27.600
Of course we are on Windows, so click on Windows and this is the exact page in case you face any other

03:27.600 --> 03:29.220
error, maybe later on.

03:29.220 --> 03:32.040
This is the page which is going to help you much here.

03:32.160 --> 03:38.370
It looks like my installer is asking for some things, so we're going to click on Finish and there we

03:38.370 --> 03:38.610
go.

03:38.610 --> 03:39.960
Now it is installed.

03:39.960 --> 03:41.970
Now things are not done yet.

03:42.360 --> 03:45.900
Make sure you just scroll down a little bit onto the installation process.

03:46.230 --> 03:51.000
Notice we have done all these steps for the MSI installer, now we want to run it.

03:51.750 --> 03:54.210
So the running process is pretty easy.

03:54.210 --> 03:58.230
So we're going to just keep on scrolling because we have done all of this part here.

03:58.230 --> 04:01.260
We can keep on scrolling and there we go.

04:01.260 --> 04:05.910
When it says If you are to install MongoDB as a service, this is the command that you might want to

04:05.910 --> 04:06.480
run.

04:06.480 --> 04:08.370
So we're going to run this entire command.

04:08.370 --> 04:11.280
So I'm going to hit control C to copy this.

04:11.280 --> 04:17.370
I'm going to go on my command prompt, hit the windows and type cmd command prompt.

04:17.580 --> 04:22.290
I want to open you and I want to paste this here and I'm going to hit enter.

04:22.320 --> 04:23.130
There we go.

04:23.130 --> 04:28.920
Now, if you are seeing this tilde arrow here, that means everything is good and we have got MongoDB

04:28.920 --> 04:30.360
successfully installed here.

04:30.360 --> 04:35.190
Now again, I cannot zoom it much here, but this is exactly what we are looking for.

04:35.220 --> 04:37.470
That means installation is pretty okay.

04:37.500 --> 04:42.840
Now let me tell you a couple of things which what used to be a problem and how to resolve that in some

04:42.840 --> 04:43.980
of the previous versions.

04:43.980 --> 04:46.890
I'm going to press control C to kill this process right now.

04:46.890 --> 04:47.910
This is all good.

04:47.940 --> 04:54.540
Now, in some of the previous versions of MongoDB, you were required to create data directory and DB

04:54.540 --> 04:55.740
directory manually.

04:55.740 --> 05:00.690
So in case you are working with some of the previous versions, again, a big notification here.

05:00.690 --> 05:00.960
You don't.

05:01.090 --> 05:04.090
Not need to do this if you are not an experienced user.

05:04.120 --> 05:11.170
In the previous one versions of MongoDB, if you are installing it on a Windows, you need to run an

05:11.170 --> 05:11.770
extra command.

05:11.770 --> 05:18.130
This is completely optional, which is make directory and it requires a slash data and slash.

05:18.970 --> 05:24.820
I forgot that it was data and DB data and db.

05:24.940 --> 05:26.410
It is all written up here.

05:26.530 --> 05:32.980
Now, one very crucial thing that I would like to talk to you is whenever I'm going to be teaching you

05:32.980 --> 05:36.820
anything, I expect you that you will always be running this command.

05:36.910 --> 05:39.070
But when you run this command.

05:39.430 --> 05:43.510
One thing I wanted to show you is let me open up this.

05:43.870 --> 05:45.880
I want to go into C directory.

05:46.750 --> 05:47.500
There we go.

05:48.410 --> 05:51.230
I want to go into my C directory.

05:51.230 --> 05:54.350
There we go inside the program files.

05:55.640 --> 06:00.230
This is my program files and I want to check out MongoDB.

06:00.260 --> 06:02.000
Let me explore that.

06:02.960 --> 06:11.870
And I want to go into MongoDB and in the server make sure that if whatever the version you are installing

06:11.870 --> 06:14.360
this is exactly written here like 4.0.

06:14.360 --> 06:15.680
So note it down somewhere.

06:15.680 --> 06:21.340
When you go back into the documentation, whatever the command you are running, this should be exactly

06:21.350 --> 06:21.740
same.

06:21.740 --> 06:24.890
If your version is 4.2, make sure you're writing in the command.

06:24.890 --> 06:31.550
4.2 If your version is five, make sure you write the version five here for all the versions which are

06:31.550 --> 06:37.670
I guess like less than four requires you to create an extra directory, which is slash data, slash

06:37.670 --> 06:41.240
DB for all the people who are watching the video right now.

06:41.240 --> 06:42.230
You don't need to do anything.

06:42.230 --> 06:42.650
Okay.

06:42.770 --> 06:45.230
It's pretty straightforward installation process.

06:45.230 --> 06:46.040
Now, one more thing.

06:46.040 --> 06:48.830
I know I've said it a lot, but one more last thing here.

06:48.950 --> 06:54.830
Whenever, whenever I'm going to be teaching you MongoDB, I will assume that you will open up your

06:54.830 --> 07:01.130
command prompt, run this entire line of command here and hit enter and we'll keep it up and running.

07:01.130 --> 07:04.070
You can always minimize this and keep it up and running.

07:04.100 --> 07:10.010
I will not mention it again any further in this entire tutorial series that hey, why my MongoDB is

07:10.010 --> 07:10.610
not working.

07:10.610 --> 07:16.580
Hey, you forgot to run that command, so make sure you keep it a note somewhere or just hang it on

07:16.580 --> 07:23.090
the wall that whenever I need to go up, I need to get started with MongoDB as a server and that command

07:23.090 --> 07:23.540
will help you.

07:23.540 --> 07:26.840
I'll probably just bookmark this page or something if you are interested.

07:26.960 --> 07:28.670
Again, pretty straightforward.

07:28.670 --> 07:32.870
Previously it was a little bit tricky with the DB path and the log path, but now they have figured

07:32.870 --> 07:34.580
it out all through the installation process.

07:34.580 --> 07:39.290
I'm really happy that they have just nailed it down everything so smoothly.

07:39.290 --> 07:40.760
So that's it for this video.

07:40.760 --> 07:45.830
And from the very next video, we're going to be learning about MongoDB Shell and we'll be performing

07:45.830 --> 07:47.360
definitely the crowd operations.

07:47.360 --> 07:51.650
In case you are new here, make sure you hit that subscribe button on my YouTube channel and we'll catch

07:51.650 --> 07:52.970
you up in the next video.
