Intro to MySQL Part I

Post on 06-Aug-2015

51 views 1 download

Tags:

Transcript of Intro to MySQL Part I

Intro to MySQLBy Alkin Tezuysal

Engineering Manager at Blackbird

@ask_dba

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

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.

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

Blackbird

MySQL Version History

Blackbird

MySQL Architecture

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

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 …

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

Blackbird

MySQL Replication Types

Blackbird

MySQL Replication - How it works?

Blackbird

MySQL Replication Use Cases

Blackbird

Load Balancing Basics

Blackbird

References:

• High Performance MySQL 4th Edition Optimization, Backups, Replication and Load Balancing, by Jeremy Zawodny and Derek Balling, ISBN: 0596-003064, O’Reilly Media, 2004.)

• http://dev.mysql.com

• http://www.oracle.com - MySQL Replication & Scalability - Oracle

Who am I?• 3 * SCUBA Dive Master / Freediver • Yacht Captain • Snowboarder• Extreme fisherman• Bicyclist• Geek• Dad• Coach• Guitarist • Leader • @ask_dba• tr.linkedin.com/in/askdba