MongoDB with Async Python Transcripts
Chapter: Setting Up Your Computer
Lecture: Installing MongoDB
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Of course, you're also going to need MongoDB. There are database as a service platforms where you can connect to MongoDB remotely,
0:09
but I recommend you just install it locally for this course. Keep it plain and simple, okay? So if you visit this URL here at the bottom
0:17
over on mongodb.com, it will take you through how to install MongoDB for your platform. Whether you're on Linux, macOS, or Windows,
0:26
they'll have you covered, okay? Okay, so it's really important that you install MongoDB. Many of the places you install it will suggest
0:36
that it runs as a service or daemon that just constantly runs on your platform, on your OS when you log in. You may not want this all the time.
0:46
You know, if you're not really doing MongoDB stuff frequently it's just taking up memory, a little bit of CPU time. So you wanna turn that off.
0:54
But for this course where it talks about starting it as a service that just runs the Windows service or a macOS service, whatever it be,
1:02
brew service. Go ahead and do that just so that it's always running while you're going through
1:06
this course. And then you can tell that service to stop and not auto start if you need to.
1:11
So make sure you get MongoDB going, just follow the steps here. This is important.
1:17
You'll also need a couple of command line tools to work with MongoDB. MongoDB is queried through what's called the MongoDB or Mongo Shell.
1:27
And the command that you type to get that is mongosh or mongo sh. Here, so you're going to want to download and install this in addition to MongoDB,
1:38
the database server. They're not included with each other. So get MongoDB, the server and the MongoDB shell.
1:45
And finally, to import and export data and to look, if you care for things like the performance,
1:53
CPU load, memory load, in real time in MongoDB itself, like monitoring tools, you can get the database tools itself.
2:01
Most importantly, we'll look at Mongo Restore and Mongo Dump, that is, import data and export data for the databases themselves.
2:10
So that's why you're going to need to get this third set of tools here.