0% found this document useful (0 votes)
27 views

Experiment No. 1 BDA

The document discusses installing and configuring MongoDB to execute NoSQL commands. It provides an overview of MongoDB and MySQL, comparing their data models, scalability, query languages, performance, flexibility, and security. Steps are outlined to install MongoDB on Windows, including downloading the installer, running the installation wizard, configuring the service, installing MongoDB Compass, and running MongoDB.

Uploaded by

gowona4117
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Experiment No. 1 BDA

The document discusses installing and configuring MongoDB to execute NoSQL commands. It provides an overview of MongoDB and MySQL, comparing their data models, scalability, query languages, performance, flexibility, and security. Steps are outlined to install MongoDB on Windows, including downloading the installer, running the installation wizard, configuring the service, installing MongoDB Compass, and running MongoDB.

Uploaded by

gowona4117
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Experiment No.

1
Aim:- To install and configure MongoDB to execute NoSQL commands.

Theory:-
What is MongoDB?
MongoDB is a NoSQL (Not only SQL) database that stores large volumes of data in the
form of documents. MongoDB removes the concept of "rows" of conventional and
relational data models by introducing "documents." This offers the developers the
flexibility to work with evolving data models.

What is MySQL?
MySQL is a free, open-source, relational database management system that stores
data in
the form of tables containing rows and columns. It uses RDBMS to ensure referential
integrity between the rows of a table and interprets queries to fetch information from the
database.

MySQL vs. MongoDB: One-on-one Comparison

MongoDB MySQL

Data MongoDB stores data in JSON MySQL stores data in columns and rows.
model documents, then organizes them into Data storage is tabular and relational.
collections.

Scalability MongoDB uses replication and MySQL uses vertical scaling and read
sharding to scale horizontally. replicas to improve performance at scale.

Query MongoDB uses MongoDB Query MySQL uses SQL.


language Language.

Performan MongoDB excels at inserting or MySQL is faster when selecting a large


ce updating a large number of records. number of records.

Flexibility MongoDB does not have a schema, MySQL has a rigid schema that works
providing more flexibility and allowing well with structured data.
it to work with unstructured,
semi-structured, and structured data.

1
Security MongoDB uses Kerberos, X.509, and MySQL uses built-in authentication
LDAP certificates to authenticate methods.
users.

Which One Applications, like an accounting MongoDB is well-suited for real-time


to Choose system that requires multi-row analytics, content management, the
transactions, would be better suited for Internet of Things, mobile, and other
a relational database. MySQLis an types of applications. It is an ideal choice
excellent choice if you have structured if you have unstructured and/or
data and need a traditional relational structured data with rapid growth
database. potential.

Steps to install and configure MongoDB:-


1. Install MongoDB On Windows
To install MongoDB on Windows, first download the latest release of MongoDB from
https://www.mongodb.com/try/download/community. Make sure you get the correct
version of MongoDB depending on your Windows version.

1. In the Version dropdown, select the version of MongoDB to download.


2. In the Platform dropdown, select Windows.
3. In the Package dropdown, select msi.
4. Click Download.

2
2. Double-click the .msi file.

3. Follow the MongoDB Community Edition installation wizard.

3
4. Service Configuration

5. Install MongoDB Compass

4
6. When ready, click Install.

5
7. Running MongoDB

6
Output :

7
Conclusion:-
We installed, configured, and executed NoSQL commands in MongoDB.

You might also like