Home » MongoDB

What is MySQL and MongoDB?

MySQL and MongoDB Databases: In this article, we are going to discuss the two different structure and unstructured databases (MySQL and MongoDB) which we are used to store, update, delete and retrieve data from the database.
Submitted by Bharti Parmar, on May 24, 2019

1) MySQL

As you all know, if anytime you ever hear about or learn MySQL then, it is an open source relational database management system that works on many platforms. It provides multi-user to support different type of storage engines and is backed by Oracle.


  1. Comprehensive application development - Each database application usually has many logical databases inside. Each database contains tables fields: rows and columns. So when we set up our connection, we also define the name of the database we want to access.
  2. Scalability - It has the ability of a system, network, or process, to handle a growing amount of work in a capable manner.
  3. Flexibility - flexibility with lack of schema.
  4. Open source 24*7 support - Very fast and easy-to-use system distributed under an Open Source.
  5. High Availability - Solution, process, technology to make the application and database available 24x7 under either planned or unplanned outages.
  6. High performance - SQL can be an incredibly difficult task, particularly when working with large-scale data where even the most minor change can have a dramatic (positive or negative) impact on performance.
  7. Secure data protection - The importance of encrypted database backups, Secure the database backup folder by removing unwanted users, Use Windows Authentication instead of SQL Server Authentication Mode, Make the system administrator account's password complicated, Audit logins, Turn off the SQL Server Browser service
  8. Robust - it has robust transactional support.
  9. Low cost of ownership
  10. Easy in management - SQL is a primary language responsible for managing data held in an RDBMS. SQL is the language which provides you use to interact with a database.

2) MongoDB

It is a non-relational database and non-structure database used a collection of files and store data as a document in a binary representation called BSON (binary JSON). This database stores information related together for fast query access through the MongoDB query language.


  1. Indexing - Indexes are data structures that can store collections of data set in a form where it is easy to traverse the collections of data. Queries are efficiently executed with the help of indexes in MongoDB. Indexes help MongoDB to find document's that match the query without performing a collection scan.
  2. Replication - It is the process of synchronizing data across multiple servers. where increase's data availability with multiple copies of the dataset on different database servers. Replication protects a database from the loss of a single server.
  3. Ad-hoc queries - Ad-hoc query is created to obtain information as we need to arise accordingly.
  4. Schema-less - MongoDB uses a JSON structure to store data in the database. The documents stored in the database can have varying sets of fields, with different types for each field.
  5. Sharding -It is a process of storing data records across multiple machines and this approach is to meet the demands of data growth. As the size of the data increases, a single machine may not be sufficient to store the data nor provide an acceptable read and write throughput. Sharding solves the problem with horizontal scaling. By using sharding, we can add more machines to support data growth and the demands of reading and write operations.

Key Features of MySQL and MongoDB

Triggers and SSL support Auto sharding
Provides text searching and indexing Comprehensive secondary indexes
Query caching In memory speed
Integrated replication support Native replication
Different storage engines Embedded data models support


In this article, we have learned about MySQL and MongoDB. I hope you understand the properties and features of these different databases. We will learn more about it in the upcoming article. Have a nice day! Happy Learning!



Comments and Discussions!

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.