Results 1 to 1 of 1

Thread: [Windows] MongoDB - might become the database of your choice

  1. #1
    Banned

    Join Date
    Feb 2012
    Posts
    2,361
    Thanks
    166
    Thanked 1,206 Times in 607 Posts
    Rep Power
    0
    Reputation
    16631

    Default [Windows] MongoDB - might become the database of your choice

    If you are interested in creating/running a private No-SQL database, then might be the right choice.

    MongoDB is open-source, hence free-of-charge. It's based on JSON ( stands for JavaScript Object Notation ), which is a lightweight data-interchange format. MongoDB is self-contained and does not have any other system dependencies. MongoDB stores all data in documents, which are JSON-style data structures composed of field-and-value pairs:

    JSON Example
    It defines an employees object, with an array of 3 employee records


    {"employees":[
    {"firstName":"John", "lastName":"Doe"},
    {"firstName":"Anna", "lastName":"Smith"},
    {"firstName":"Peter", "lastName":"Jones"}
    ]}

    But not only simple strings can be stored, it's also possible to store any of the data objects.

    Long story short, recently for sake of curiosity installed and tested MongoDB for Windows 64-bit. On my Windows 8.1 64-bit laptop I created a new partition named "MongoDB" and sized 25GB to hold the DB locally. If for what reasons ever the HDD should crash, because MongoDB is in its own partition, chances the database(s) isn't/aren't lost and is/are recoverable are very high. Then copied the unzipped into this partition. Renamed the MongoDB-folder to "MongoDB". To simplify things additional created two small .BAT-files that allow me to start the MongoDB server and/or client whenever I want to.

    Code:
    @ECHO OFF
    TITLE=Starting MongoDB Server
    MODE CON: COLS=100 LINES=30
    CLS
    SET currPth=%~dp0
    SET exePth=%currPth%bin\
    SET dbPth=%currPth%data
    IF NOT EXIST %dbPth%\ MD %dbPth%
    IF NOT EXIST %dbPth%\db\ MD %dbPth%\db
    %exePth%mongod.exe --dbpath %dbPth%
    GOTO :EOF
    and

    Code:
    @ECHO OFF
    TITLE=Starting MongoDB Client
    MODE CON: COLS=100 LINES=30
    CLS
    SET currPth=%~dp0
    SET exePth=%currPth%bin\
    %exePth%mongo.exe
    GOTO :EOF
    which both of course are stored in MongoDB's folder is located, in my case F:\MongoDB


    A complete MongoDB Tutorial you find .

    You also will find many videos on MongoDB if you do a Google-search for "youtube MongoDB".

  2. The Following User Says Thank You to jwoegerbauer For This Useful Post:

    tristen (11-02-15)



Look Here ->

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •