This is a collection of articles regarding MongoDB that were previously published on this blog. This is for quick reference.
MongoDB Cloud in Navicat – Connection Failed
It was described in my previous post how to connect to the MongoDB Cloud in Navicat. If you are having trouble connecting, your IP address is probably not registered, though. If access is granted to your IP address, you will only be allowed to connect to your cluster from the GUI. Go to the dashboard…
MongoDB Database Commands
To read about MongoDB, please click here. To know about terms used in MongoDB, please click here. For a sample MongoDB dataset, please click here. In this article, we will be discussing the list of the commands that are used against the databases in MongoDB. To get the list of all databases. show dbs To…
MongoDB vs RDBMS – Terms
Despite the fact that RDBMS continues to lead the business, NoSQL is rising in popularity. Those who are accustomed to RDBMS are frequently perplexed by the terminologies used in MongoDB. In this article, we’ll look at MongoDB terminology that is comparable to RDBMS. Some More: Source: MongoDB Docs
MongoDB – Drop Database And Collections
This post will show you how to remove a database and collections from MongoDB. Bring the database into use using the “Use databaseName” command to drop it. You can then delete the database using the db.dropDatabase() command. Syntax to drop the database is: > db.dropDatabase() Example: > use CompanyDB switched to CompanyDB > db.dropDatabase(); Syntax to…
MongoDB – Create and Insert Collection
This post aims to let you know how to add a record into a collection in MongoDB. Let’s create a “emp” collection (table) first. > db.createCollection(“emp”, { capped : true, size : 5242880, max : 5000 } ) Executing the above command will create a collection named “emp” with a maximum size of 5 megabytes…
MongoDB – Create Database And Collection
This post describes how to use the command prompt to connect to a MongoDB server and use CLI commands to display the available databases and collections, create a database and create a collection. To put it another way, it explains the fundamental CLI commands. Connecting to MongoDB: You can simply type “mongo.exe” in your run command…
Connecting MongoDB Cloud to Navicat
This article explains how to connect MongoDB cloud to MongoDB Compass, Workbench, and Navicat Premium. Click on “Databases” from the left-side navigator and click on the three dots that appear after the “Browse Collections” button. Select the “Command Line Tools” option from the drop-down. You’ll see multiple options, select “Connect To Your Cluster” Click on…
EMP and DEPT datasets for MongoDB
Since Oracle’s “EMP” and “DEPT” datasets are useful for practice, I’ve provided converted scripts for SQL Server and MySQL in previous articles. This tutorial will guide you through the process of creating an example dataset and practice adding entries into MongoDB. The table definition in SQL is as given below: –Table definition – Dept CREATE…
It’s all about MongoDB
MongoDB Introduction:As stated in my previous article, MongoDB is a cross-platform document-oriented database software that is open source and works with JSON-like documents and optional schemas. MongoDB queries can return particular fields from documents or a random sample of results of a certain size. Indexing can assist you improve your performance. There is a high…
NoSQL – MongoDB – Introduction
NoSQL – Introduction:When we talk about something, we frequently compare it to something else to make it easier to grasp. We bring up the subject of SQL (referring to SQL product) in order to comprehend what NoSQL is, either to identify the differences or to compare the similarities. There are several websites that explain the…