intro to mysql part i

16

Upload: alkin-tezuysal

Post on 06-Aug-2015

48 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Intro to MySQL Part I
Page 2: Intro to MySQL Part I

Intro to MySQLBy Alkin Tezuysal

Engineering Manager at Blackbird

@ask_dba

Page 3: Intro to MySQL Part I

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

Page 4: Intro to MySQL Part I

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.

Page 5: Intro to MySQL Part I

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

Page 6: Intro to MySQL Part I

Blackbird

MySQL Version History

Page 7: Intro to MySQL Part I

Blackbird

MySQL Architecture

Page 8: Intro to MySQL Part I

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

Page 9: Intro to MySQL Part I

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 …

Page 10: Intro to MySQL Part I

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

Page 11: Intro to MySQL Part I

Blackbird

MySQL Replication Types

Page 12: Intro to MySQL Part I

Blackbird

MySQL Replication - How it works?

Page 13: Intro to MySQL Part I

Blackbird

MySQL Replication Use Cases

Page 14: Intro to MySQL Part I

Blackbird

Load Balancing Basics

Page 15: Intro to MySQL Part I

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

Page 16: Intro to MySQL Part I

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