Open In App

Architecture of MySQL

MySQL is a Relational Database Management system which is free Open Source Software Under  GNU License. It  is also supported by Oracle Company . It is fast , scalable, easy to use database management System. MySQL support many operating system like Windows, Linux, MacOS etc.

MySQL is a Structured Query Language which is used to manipulate, manage  and retrieve data with the help of various Queries.



MySQL is developed and supported by MySQL AB, which is a Swedish Company and written in C and C++ programming language. It was developed by Michael Widenius and David Hughes . It is often  used to say that MySQL is named after the name of the daughter of the co-founder  Michael  Widenius whose name is ‘My’.

Architecture of MySQL:



Architecture of MySQL describes the relation among the different components of MySQL  System.  MySQL follow Client-Server Architecture. It is designed so that end user that is Clients can access the resources from Computer that is server using various networking services. The Architecture of MY SQL contain following major layer’s :

Client Layer:
This layer is the topmost layer in the above diagram. The Client give request instructions to the Serve with the help of Client Layer .The Client make request through  Command Prompt or through GUI  screen by using valid MySQL commands and expressions .If the Expressions and commands are valid then the output is obtained on the screen.  Some important services of client layer are :

Connection Handling :  
When a client send request to the server and server will accept the request and the client is connected .. When Client is connected to the server at that time , a client get it’s own thread for it’s connection. With the help of this thread all the queries from client side is executed.

Authentication : 
Authentication is performed on the server side when client is connected to the MySQL server. Authentication is done with the help of username and password.

Security : 
After authentication when  the client gets connected successfully to MySQL server, the server will check  that a particular client has the privileges to issue in certain queries against MySQL server.

Server Layer:  
The second layer of MySQL architecture is responsible for all logical functionalities of relational database management system of MySQL. This Layer of MySQL System is also known as “Brain of MySQL Architecture”. When the Client give request instructions to the Server and the server gives the output as soon as the instruction is matched.  The various subcomponents of MySQL server are:

Storage Layer: 
This Storage Engine Layer of MySQL Architecture make it’s unique and most preferable for developer’s. Due to this Layer, MySQL layer is counted as the mostly used RDBMS and is widely used. In MySQL server, for different situations and requirement’s different types of storage engines are used which are InnoDB ,MyISAM , NDB ,Memory etc. These storage engines are used as pluggable  storage engineer where tables created by user are plugged with them.

Features of MySQL:

  1. MySQL’s language is easy to use as compared to other programming language like C, C++, Java etc. By learning with some basic command we can work , create and interact with Database.
  2. MySQL consist of  Data Security layer  which protect the data from violator. Also, passwords are encrypted in MySQL.
  3. MySQL follow Client-Server Architecture where  Client request Commands and instructions and Server will produce output  as soon as the instruction is matched.
  4. MySQL is free to use under the Community version of it. So we can download it from MySQL website and work on it freely.
  5. MySQL use multithreading, which makes it Scalable. It can handle any amount of data . The default file size limit is 4 GB, but we can increase it according to our need.
  6. MySQL is considered as one of the fast databases. It’s fastness is determined on the basis of large number of benchmark tests.
  7. MySQL is very flexible because  it supports large number of embedded systems.
  8. MySQL is compatible to run on various operating system such as Windows, macOS , Linux etc.
  9. MySQL allow transactions to be rolled back, commit and cash recovery.
  10. It has low memory leakage problem which increase its memory efficiency.
  11. MySQL version 8.0 provide dual password support , one is a current password and another is secondary password. With the help of this we can create new password.
  12. MySQL provide feature of Partitioning  which improve performance of large databases.
Article Tags :