![install mongo on windows install mongo on windows](https://res.cloudinary.com/hevo/image/upload/f_auto,q_auto/$wpsize_!medium_large!,w_768,h_432,c_scale/v1644569537/hevo-learn/With-Icon-56.png)
Voilà! Now our MongoDB server is up and running! ? If you start the MongoDB server without those directories, you’ll probably see this following error: trying to start mongodb server without \data\db directoriesĪfter creating those two files, head over again to the bin folder you have in your mongodb directory and open up your shell inside it. Therefore, it is necessary that we provide those directories like so. MongoDB’s default data directory path is /data/db on the drive. The purpose of these directories is MongoDB requires a folder to store all data. Open up your command prompt inside your C drive and do the following: C:\> mkdir data/dbC:\> cd dataC:\> mkdir db To do that on Windows, first you need to create a couple of directories in your C drive. Now let’s see how we can get this server up and running. Mongo is a command line shell that can interact with the client (for example, system administrators and developers). For instance, accepting requests, responding to client, and memory management. The main purpose of mongod is to manage all the MongoDB server tasks. mongod is a background process used by MongoDB. In the bin directory, you’ll find an interesting couple of executable files. C: -> Program Files -> MongoDB -> Server -> 4.0(version) -> bin Go to program files and select the MongoDB directory. Once done, head over to the C drive in which you have installed MongoDB. Here, I’ve used Windows.Īfter downloading MongoDB community server setup, you’ll go through a ‘next after next’ installation process.
![install mongo on windows install mongo on windows](https://i.ytimg.com/vi/FwMwO8pXfq0/maxresdefault.jpg)
To do this, visit the official download center and download the version for your specific OS.
Install mongo on windows install#
In order to work with MongoDB, first you need to install MongoDB on your computer. Okay, enough of the talk, let’s get to work! Configuration ? Today, I wanted to share some of the basic stuff about MongoDB commands such as querying, filtering data, deleting, updating and so on. If you are a complete beginner to NoSQL, I recommend you to have a quick look at my NoSQL article published previously. MongoDB is a rich document-oriented NoSQL database.
Install mongo on windows how to#
By Navindu Jayatilake How to get started with MongoDB in 10 minutes