How to Create a Table in MongoDB (db.createCollection, Schema Validation, Keys)

MongoDB create collection with schema validation and a rejected insert in mongosh

MongoDB has no CREATE TABLE statement, and you don’t need one. To create table in MongoDB, you create a collection: run db.createCollection(“customers”), or insert the first document and MongoDB makes the collection for you. Either line gives you a customers collection. Tested on MongoDB 9.0.4 and mongosh 2.14 on Windows; every output below is from … Read more >>

Pros and cons of MongoDB

Pros and cons of MongoDB

In this topic, we are going to learn the pros and cons of MongoDB and we will also learn or compare the pros and cons of MongoDB with other databases. These are some of the topics that we are going to cover What are the key features of MongoDB MongoDB is an open-source document-oriented database … Read more >>

MongoDB backup and restore

how to backup mongodb databases

In this MongoDB tutorial, we will learn how to create backup and restore databases in MongoDB on different operating systems. these are the topics we are going to cover How does we create a backup of database in Windows Why do we backup The main reason for the backup is to make a copy of … Read more >>

How to install MongoDB

Install MongoDB

This article is about How to Install MongoDB. In this topic, we will cover various operating systems where how we can easily install MongoDB and start the MongoDB server. These are some of the OS that we are covering: While talking about MongoDB, It supports many platforms, there are the following operating systems that are … Read more >>

MongoDB shutting down with code 100

mongodb shutting down with code 100

In this MongoDB tutorial, let us see how to fix the error, “MongoDB shutting down with code 100“. We will also see the root cause of the issue. Why shutting down with code 100 in MongoDB While starting MongoDB, I recently got an error like “MongoDB shutting down with code 100“. It looks like below: … Read more >>

How to Restart PostgreSQL (Linux, Windows, Mac)

restart postgres centos

In this PostgreSQL tutorial, we will learn how to restart PostgreSQL services or servers in various platforms like Windows, Mac, and Linux. Also, we will cover these topics: How to Restart Postgres Service In this section, we will see why do we need to restart the PostgreSQL services on various platforms like Windows, Mac, and … Read more >>

How to Uninstall PostgreSQL (Linux, Mac,Windows)

uninstall PostgreSQL in Ubuntu

In this PostgreSQL tutorial, we will learn how to uninstall PostgreSQL from different operating systems. The possible reasons for uninstalling PostgreSQL could be the project is complete and you don’t need PostgreSQL, the software is at fault or broken, unable to update the PostgreSQL so want to reinstall with the latest version, etc. How to … Read more >>