2. Intro to MySQL
By Alkin Tezuysal
Engineering Manager at Blackbird
@ask_dba
3. MySQL Architecture Overview
• What is a Database?
• What is MySQL?
• MySQL History and Background
• MySQL Architecture
• MySQL Features (Pros-Cons)
• MySQL Best Features
• MySQL Replication Types
• MySQL Use Cases
• MySQL Replication
• Load Balancing Basics
4. Blackbird
What is a Relational Database?
• Accessible and Relational
• Data Management
• Organised Data Store
• Systematic Data Architecture
• Security Enabled
• Tuneable Performance
• Ability to utilise Operating System and its resources at kernel level system
software.
4
5. Blackbird
What is MySQL?
• Popular software in open source world with GNU license
• Easy to manage , easy to use features
• Multi platform support
• Adoptable to popular software languages such as PHP and Java
• De-facto standard for web and e-commerce applications and unbeatable
choice for startups
5
8. Blackbird
MySQL Features - Pros
• Locking and Concurrency
• Read/Write Locks
• Lock Granularity (Table,Page,Row level locks)
• Transactions
• ACID Compliance (Atomicity, Consistency, Isolation, Durability)
• Multiple and Pluggable engine types
• Advanced Indexing
• Slow Query Log
• Optimizer Decision (Cost Based) and Explain Plan
8
9. Blackbird
MySQL Features - Cons
• Tablespace management
• Role access management
• Immature Stored Procedures and Triggers
• Advanced Partitioning
• Advanced Views
• Lack of Parallelism
• Struggle with Large and Critical Data
• Limited Backup and Recovery options for VLDB
• Some other features in 5.6, 5.7 …
9
10. Blackbird
MySQL Best Features
• Free, Almost Free, Lowest Total Cost of Ownership, Open Source
• Easy setup and low profile replication features
• Scalability and Flexibility
• High Performance
• High Availability
• Robust Transactional Support
• Works with very limited resources
• Platform availability
10