MongoDB TutorialLesson 2Free preview
MongoDB Get Started
This lesson is part of MongoDB · All levels
Summary
This lesson explains the first step in using MongoDB: install a server, run it, and then connect to it via mongosh. Once connected, you can view the database list with the show dbs and create a new database implicitly through the use command. All the data in MongoDB is documents written in a JSON-like format.
Key points
- MongoDB is run as a local server or through managed services like Atlas
- Mongosh is used to connect to a MongoDB server
- Show dbs displays existing databases; use <nama> to select or create databases
- A new database is actually stored after containing at least one collection and data.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.