![]() If your setup is successful you will get the following result. Open another command prompt connect to the server by running the mongo command this will give you MongoDB shell and from this, you canįrom MongoDB shell, you can manipulate data in the database.įor testing the setup, try connecting to a database named my database using the use command. Open a command prompt and run the MongoDB server by executing the mongod command as shown below −Ĭ:\Users\Tutorialspoint>mongod -dbpath "C:\data" Set the path (environmental variable) for the bin directory of MongoDB i.e. Install the downloaded software and create a folder/directory named data in the C drive to store the database files. In the MongoDB Community Server page, specify the platform details and download the MongoDB server compatible to your platform. Visit the MongoDB home page, in the Software (dropdown), select Community Server.
0 Comments
Leave a Reply. |