DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • 5 Key Postgres Advantages Over MySQL
  • Keep Calm and Column Wise
  • SQL Data Manipulation Language (DML) Operations: Insert, Update, Delete
  • Navigating the Divide: Distinctions Between Time Series Data and Relational Data

Trending

  • Zone-Free Angular: Unlocking High-Performance Change Detection With Signals and Modern Reactivity
  • Content Lakes: Harness Unstructured Data for Enterprise AI Readiness
  • Architecting Petabyte-Scale Hyperspectral Pipelines on AWS
  • Why Your QA Engineer Should Be the Most Stubborn Person on the Team
  1. DZone
  2. Data Engineering
  3. Databases
  4. Intro to MySQL

Intro to MySQL

Look at an intro to the MySQL database (an RDBMS) and go through its architecture and features that make it the best choice for developing web apps or websites.

By 
Sajan Agrawal user avatar
Sajan Agrawal
·
Feb. 27, 20 · Review
Likes (4)
Comment
Save
Tweet
Share
13.9K Views

Join the DZone community and get the full member experience.

Join For Free

One of the numerous important aspects for the smooth functioning of a website or a web app is the strength of its database. How well the DB handles critical high-volume traffic, is there a data recovery mechanism in case of system failures, advanced functionalities, etc. are some of the parameters that define the working of a DB.

Our previous blog introduced the non-relational DBMS MongoDB. In this article, we will look at an introduction to the MySQL database (an RDBMS) and go through its architecture and various features that make it the best choice with regards to developing web apps or websites.

Architecture

MySQL, initially developed by MySQL AB, now backed by Oracle, is a relational database management system (RDBMS), based on the client-server model.

Image Source: ntu.edu.sg

Data is distributed in a tabular form (in different tables) using rows and columns. Tables are connected to each other via joins (relations).

SQL (Structured Query Language) is used as a mode of communication between the client and the server. All advanced functions of the SQL, like triggers, stored procedures, etc. can be used as part of querying.

MySQL is a multi-platform DB that can run on various operating systems like Windows, Linux, Unix, Mac etc. It is an open-source DB written in C and C++ but uses SQL as the language to communicate within the DB, and it supports various data types, namely Character-string, Numeric, Bit-string, Date & Time, Boolean, and Timestamp.

MySQL is the most widely used DB, along with PHP, to build websites, and popular examples of them include Facebook, WordPress, Drupal, etc. It is also compatible with other programming languages like Ruby, Python, Perl, etc.

Features

Developers are swearing by MySQL because of its wide range of features and benefits and are giving their systems an introduction to MySQL by migrating from previous DB to MySQL.

Performance

As mentioned above, the performance of a DB, while maintaining an enormous amount of data, is a significant parameter it is judged upon. MySQL provides high performance in such critical situations without compromising on data since it stores data on multiple engines like InnoDB, ISAM, CSV, etc. It offers faster loading because of its memory caching and indexing methodologies.

High Availability and Throughput

One of the major advantages of MySQL is the availability of the MySQL cluster servers that facilitate auto-sharding, wherein data is distributed across several servers. In this way, data is well-balanced and always accessible even during high-traffic situations.

In the event of any crash or system failure, data can be replicated onto secondary servers from the primary servers, thereby providing instant backup and recovery.

Compliance to ACID

MySQL is fully compliant to ACID (Atomicity, Consistency, Isolation, Durability), which means it guarantees reliable transaction processing and data accuracy even during adverse circumstances.

Leveraging SQL Functionality

Having SQL as its primary language for database interaction, MySQL supports the use of advanced SQL components like views, stored procedures, triggers, functions, etc. for enhanced application development. Perhaps this is one of the most powerful features of MySQL.

Security

MySQL provides robust security mechanisms like user account authorization, password encryptions, etc., which make it the most secure and reliable RDBMS.

Summary

The below survey shows the most popular databases in 2018.

Image Source: eversql.com

This introduction to MySQL can give developers a new horizon to explore and gain advanced expertise in RDBMS functionalities. MySQL displays a broad array of attributes and powerful data storage mechanisms, which has brought it to the number one position in the world of RDBMSs. With industry giants like Facebook and YouTube backing it and incorporating it as their DB, MySQL is here to stay and slay!

Further Reading

Essential MySQL

MySQL Cluster Relational database Database sql Data (computing) Open source Management system Multi-platform Transaction processing

Published at DZone with permission of Sajan Agrawal. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • 5 Key Postgres Advantages Over MySQL
  • Keep Calm and Column Wise
  • SQL Data Manipulation Language (DML) Operations: Insert, Update, Delete
  • Navigating the Divide: Distinctions Between Time Series Data and Relational Data

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook