-->

  • Set environment for mongodb

     

    Set environment for mongodb

     

    Set environment for mongodb



    This blog and in upcoming blog we will see mongodb basic and how is it work with installation and after installation we should not face any problem while making Database, collection(table) and using the data in nodejs even whenever we will make API.



    • # Download DB
    • # Install MongoDB
    • # Set Environment for Mongo
    • # MongoDB compass Tool




    MongoDB is a popular open-source NoSQL (non-relational) database management system. NoSQL means no structure like it is look like an object while in SQL it is a structure query language like SELECT CustomerName, City FROM Customers; (The SELECT statement is used to select data from a database.) But NoSQL database is useless...NOT completely because of whenever we want add extra column in database then it is possible through NoSQL MongoDB.  



    Object Like - 

     

     

    {
      "_id": {
        "$oid": "659ad46e0382148123c82841"
      },
      "name": "moto G60",
      "brand": "motorola",
      "price": 16500,
      "category": "mobile"
    }
    
    
    

     

     


    MongoDB is a type of database that helps store and manage large amounts of data in a flexible and scalable way. Unlike SQL, MongoDB doesn't require a fixed structure for the data, allowing you to store information in a more versatile format.


    • MongoDB is a NoSQL database.
    • The data stored in a collection
    • Collection don't have row and columns
    • Data is stored in the form of object.




    Download DB and Install MongoDB

     

    1) Visit the official MongoDB website: https://www.mongodb.com/try/download/community


    2) On the MongoDB Download Center page, you'll find different versions of MongoDB. Choose the "Community Server" version, which is free and open-source.


    3) Scroll down to the "Community Server" section, and you'll see various download options based on your operating system. Click on the "Windows" tab.


    4) Select the version of MongoDB you want to download. Typically, the latest stable version is recommended.


    5) Choose the installation package that suits your Windows version (either 32-bit or 64-bit). If you're unsure about your Windows version, you can check it by right-clicking on "This PC" or "My Computer" and selecting "Properties."


    6) Click the "Download" button to start the download.


    7) Once the download is complete, open the installer executable file (.msi extension) you just downloaded.



    Set environment for mongodb





    8) Follow the installation wizard's instructions. You can choose the installation directory and other configuration options during the installation process. It is very simple process.


    9) MongoDB Compass is a graphical user interface (GUI) for MongoDB. If you want to install it as well, make sure to check the option during the installation process.

     

    Direct Downloadable link of Compass MongoDB GUI - CLICK HERE 

     


    10) After completing the installation, MongoDB will be installed on your Windows machine. You can start using it to create databases, collections, and perform various database operations.




    Set Environment for Mongo


    After installing mongodb and GUI compass software lets check is the mongodb path set or not. Okay for this simply search environment variables in windows icon and open it.



    Set environment for mongodb


    Click on environment variables and choose path and edit.

     

     

    Set environment for mongodb

     


    as you can see that path is already set when we install mongodb okay.



    Set environment for mongodb


    If it is not set then go to directory where mongodb installed. For this C:\Program Files\MongoDB\Server\6.0\bin and copy this directory and paste in path section like this - in above picture.



    MongoDB compass Tool


    MongoDB Compass is the official graphical user interface (GUI) for MongoDB. It provides a visual way to interact with your MongoDB databases and collections, making it easier to explore and manipulate your data.



    Set environment for mongodb






    Disclaimer



    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.