Skip to content

Instantly share code, notes, and snippets.

@mikoloism
Last active October 15, 2020 20:30
Show Gist options
  • Save mikoloism/253e2db90c8a98c71215611f977d74b6 to your computer and use it in GitHub Desktop.
Save mikoloism/253e2db90c8a98c71215611f977d74b6 to your computer and use it in GitHub Desktop.
MongoDB not SQL Database

MongoDB

i think, everyone know what is mongodb and not need to say about it and how work?! πŸ€” then, i think anyone should learn MongoDB and how create a DB with mongodb πŸ‘

Installation

at the first, we need to install mongodb in local-env, but you can you cloud-env πŸ‘ we are using Ubuntu and i don't know about windows and mac, but, maybe this is common way πŸ˜‰

Install Mongodb-org pkg

this installation way very descriptionally and that is available on MongoDB.org, i tried to install this package but i given ERROR!!! πŸ’₯, then i use second way:

Install MongoDB pkg (Second-Way)

yes, after many time installing and uninstalling mongodb-org pkg, i try this way: write or copy below command into your termianl (windows users: cmd):

$ sudo apt-get update
$ sudo apt-get install mongodb
$ sudo systemctl start mongodb
$ sudo systemctl enable mongodb
$ sudo systemctl status mongodb

Installing successfully! πŸŽ‰

Run

use $ mongo if not ruuning, run $ sudo mongo

Learn and use

learn cheatsheet in cheatsheet.md file in next week πŸ˜‰ πŸ’₯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment