Moving on, assuming that you have installed the MongoDB on your local system and expecting that you
have done that or otherwise maybe are using cluster, which is the Atlas.
The one thing that I always recommend to everyone is to have a visualization of the database.
Most of the programmer prefer to have their database and thus the terminal.
That is also a good approach, but having a visual over the database sometimes gives you an added advantage
in debugging the code.
That's majorly what we do all the time.
So in this video I'll show you that.
What are the tools that are available for us for doing the exact same thing?
If you go up in here into the MongoDB dot com, you're going to find that they provide you a couple
of products here as well.
So if you click on the software, they have a lot of great softwares.
One that is going to be needed for this one is Compass, which is a joy for MongoDB.
And the great thing is MongoDB obviously knows that the audience is greatly scattered around all the
operating systems.
So if you click on Try Now, they give you access of their software into all different OS.
It can be OS X, which is my system in my case, but it can be Windows seven or Ubuntu RedHat, whatever
you are going on.
The installation is pretty simple.
Just click click next.
Agree or for the mac user just drag and drop.
Once you do.
So, what it's going to give you is a similar kind of a compass.
This is really nice and beautiful and this is what you get exactly.
It is pre-filled by MongoDB colon slash slash local host colon 27017, which is a default port for MongoDB.
You can click on edit and modify that also, but the default string is good enough.
If you are saying nothing, just go ahead and enter that MongoDB colon slash slash localhost call on
to 7017.
That's the default.
If you click on the Connect, you will be able to connect with your database.
Locally installed mine is having few extra extra here like LCF faster.
These are some of the crash courses on YouTube, so don't worry on that.
By default you're going to see admin and config.
That's the two that you'll be seeing I guess local also, but these are the two that you'll definitely
see that.
And you need to just go up here at the very top where you see MongoDB click on the Connect and Disconnect.
Mine is a little bit out of the area of recording screen, so that's why I cannot show you.
It's actually in the top bar here and my screen is big.
So this is what we have here.
But obviously we want to try to connect with the cluster as well, the online one, that's also super
easy.
Just make sure you follow a couple of interesting steps here.
So when I go up into this deployment, make sure first an important one is the network access.
You are able to see 000 means allowed to access from anywhere.
That's important and somebody needs to have a database access as well.
So a username or password is required.
Once that is done, just click on the databases and click on Connect and make sure you are not clicking
on Connect with the application.
Because we are not connecting with the application, we are connecting with MongoDB, although the string
are very, very similar, but there's a small difference.
So if you click on the connect, then you see that we have the my first database and retrials and a
whole lot of that.
But if I go back and click on the compass here, the string is a little bit smaller here, so that's
what we need in this case.
Let's go ahead and click on copy.
So you ought to is being copied.
I'm going to go ahead and click on edit.
This will reveal your credential now issue.
I'm pretty sure you won't be doing anything bad with my credentials, I assume.
Let's click on confirm and you can also go ahead and click on fill in connection fields.
Individually, you can go ahead and do that.
I'm going to go ahead and paste this up here and replace my password with actual password.
Now, in case your password is having some of the extra unique characters or something, you need to
format that string in that format.
So as characters needs to come into that because it's kind of a URL connection that we have, click
on the Connect and sometimes you're going to see these kinds of errors don't really this is an error
just related to the compass.
This is not going to bother you too much.
You just need to copy this.
Let's go ahead and try to have a new connection.
So I'm going to go ahead and click on New Connection and the New Connection, just paste this again
and we need to replace this password.
This is a very common an error in the MongoDB world, so don't worry too much, just try to connect.
And yeah, sometimes it just requires a new connection to be opened up.
Make sure there is a plus three.
There is a lot of knowledge that needs to be done here with these service and replicas.
I won't be going in that.
So this is all that we have in the connection.
If I go ahead and create a database, I can just go ahead and create that.
I can use the existing one.
So that's the basics of it and nothing big deal.
And you can go ahead and click on Connect and Disconnect.
So a couple of interesting stuff that you have seen, especially the error that is very important for
you to see.
Make sure you just click on New Connection and try it again and that's all.
So that is basically it.
Most of the time we'll be using the localhost, so I'll be connecting the local host one and we'll give
you a little bit more insight that how the database is being performing or even how we are connecting
it, how the entries are going into that, how our data, our entries are deleting their.
A lot more things that we need to go ahead.
So that's all the tour of the guy for the MongoDB.
And let's catch up in the next video.