MySQL
MySQL
MySQL
Relational Database
Management System (RDBMS)
It is a program used to create, update, and manage relational databases.
Some of the most well-known RDBMSs include MySQL, PostgreSQL, MariaDB, Microsoft SQL
Server, and Oracle Database.
They use SQL queries to access the data in the database.
MySQL RDBMS Functions
MySQL RDBMS Functions
Before 8.0, temporary tables were handled by • Data in MySQL is stored in tables, which are
heap engine. The heap engine had no feature organized into rows and columns.
to store bigger tables on disk.
• Each table corresponds to an entity and
Since 8.0, there is a brand new temptable stores related information.
engine, which has following advantages:
• it is able to store bigger tables on disk (in • MySQL supports various data types like INT,
temporary files), VARCHAR, DATE, BLOB, JSON, etc., to store
• it uses row format with variable size (can different types of data in tables.
save memory for varchars),
• it is better designed (easier to maintain).
MySQL RDBMS Functions
Indexes:
• Used to speed up data retrieval.
• Are created on columns that are
frequently used in search or sorting
operations.
Encryption:
• SSL/TLS Encryption:
to protect data during transmission.
• Transparent Data Encryption (TDE):
for encrypting data at rest (requires
additional configuration).
MySQL RDBMS Functions
• Backup and Recovery
• mysqldump
• Replication
• Point-in-Time Recovery (PITR)
• Monitoring
• Real-time performance metrics
• MySQL Workbench
• Error Log
• Optimization
• Query Optimization
• Performance Schema
MySQL Editions & Versions
2 Main Editions: MySQL Community Edition & MySQL Enterprise Edition
There are 3 sub – MySQL Enterprise Editions (PAID)
◦ MySQL Standard Edition
◦ MySQL Enterprise Edition
◦ MySQL Cluster CGE
The data shows that MySQL 8.0 has had more bugs fixed than MySQL 5.7 when compared to
equivalent releases five years after their initial General Availability release.
MySQL Advantages
1. Open Source 5. High Availability
◦ Cost-effective ◦ Replication
◦ Clustering
◦ Transparency
6. Security Features:
2. High Performance ◦ Data Encryption
◦ Optimized for Read-heavy Applications ◦ Role-Based Access Control (RBAC)
◦ Indexing and Caching
◦ InnoDB Storage Engine 7. Support for Multiple Data Types
◦ Allows flexibility in data storage and manipulation
3. Cross-platform Support: 8. Community and Documentation
◦ compatible Linux, Windows, macOS, and Unix
4. Concurrency Issues
1. More concurrency of query executions requires significantly more server memory.
2. In an extreme case if the amount of memory needed by all active connections exceeds server
memory, the MySQL server may revert to memory/disk swapping, which will greatly impact user
response times.