To do this, you can connect to this server from another CMD with the mongo command and work with the database. You will see that the MongoDB server is running and now you need to open CMD and connect to it from other places and use it. To do this, open CMDand type mongod and press Enter: MongoDB stores the desired information in these folders by default. In this step you have to create a folder for data in the root of drive C and put two folders db and log in this folder. Then enter the copied path and click OK.įor example this path: C:\Program Files\MongoDB\Server\3.6\bin. In the Control Panel, click on Advanced system settings, and at the bottom, click on Environment variables:Īfter opening the Path information, click New. To do this, you need to copy the path of the bin folder in MongoDB. This is so you can open and work the database wherever you are using Command-Line or CMD. Now for a faster startup, it’s best to add MongoDB to the global variables of Windows. You see a new folder called MongoDB has been added. Step 2: Add MongoDB to the global variablesĮnter drive C to test that the installation was performed correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |