MySQL overview

44
<Insert Picture Here> MySQL Powering the Web and Cloud Economy Mark Swarbrick

Transcript of MySQL overview

<Insert Picture Here>

MySQL Powering the Web and Cloud Economy Mark Swarbrick

2

Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

3

Today’s Session • MySQL Overview • MySQL and Oracle • Who Uses MySQL? •  Is MySQL a real database? • What if I need help? • Learn more…

4

World’s Most Popular Open Source Database

• Over 15 million estimated installations • Used by 9 of top 10 web sites in the world •  Embedded by 8 of the top 10 ISVs •  #1 database in the Cloud •  Integrated w/Hadoop in 80% of Big Data platforms •  Facebook: 175K fans, +35% YoY Growth •  Twitter: 28K followers, +67% YoY Growth • Numerous Awards: Linux Journal, CRN, PHP Architect...

5

Open Source LAMP Stack

Operating System

Application Server

Database

Scripting

L A M P

6

Multiple Platforms Multiple Languages

C C++ C#

MySQL is Everywhere

7

What About MySQL and Oracle?

8

MySQL makes the cover!

9

Oracle Database and MySQL Complementary on the Web and in The Cloud

Web and Cloud computing is not a ‘one size fits all’ model

•  Together Servicing Broader User Needs •  MySQL Well Suited for Web-based & Custom

Departmental apps •  Users can Benefit by Running MySQL and Oracle

Together •  For both on-premise and Cloud computing

10

Oracle’s Investment in Open Source •  Oracle is driven by customer demand •  Oracle is committed to supporting, developing, promoting,

and adopting viable open source technologies •  Enable developer communities •  Open standards are key

11

Set your ambitions high!

Available to download and use under the GPL: •  MySQL Database (Community Server) •  MySQL Cluster •  MySQL Workbench •  Database Migration Wizard •  MySQL Utilities (in Python) •  MySQL Connectors •  MySQL Proxy •  Documentation (free to use, not covered under GPL) •  Forums

Oracle’s Investment in MySQL Community

12

UNMATCHED INVESTMENT

HUNDREDS OF EXPERTS

LARGEST MySQL ENGINEERING & SUPPORT ORGANIZATION

LINUX

WINDOWS

NoSQL

InnoDB

REPLICATION

MySQL CLUSTER

MySQL ENTERPRISE EDITION

PERFORMANCE IMPROVEMENTS

WORLD-CLASS SUPPORT WEB

CLOUD EMBEDDED

STRATEGIC

13

MySQL Enterprise Monitor 2.2 MySQL Cluster 7.1 MySQL Cluster Manager 1.0 MySQL Workbench 5.2 MySQL Database 5.5 MySQL Enterprise Backup 3.5 MySQL Enterprise Monitor 2.3 MySQL Cluster Manager 1.1

DRIVING MySQL INNOVATION

All GA!

MySQL Enterprise Backup 3.7 Oracle VM Template for MySQL Enterprise Edition MySQL Enterprise Oracle Certifications MySQL Windows Installer MySQL Enterprise Security MySQL Enterprise Scalability

MySQL Database 5.6 DMR* MySQL Cluster 7.2 DMR

MySQL Labs! (“early and often”)

All GA!

MySQL Cluster 7.2 MySQL Cluster Manager 1.4 MySQL Utilities 1.0.6 MySQL Migration Wizard MySQL Enterprise Backup 3.8 MySQL Enterprise Audit

MySQL Database 5.6 RC MySQL Cluster 7.3 DMR

A BETTER MySQL

*Development Milestone Release

2010 2011 2012-13

All GA!

Available Now!

More Product Releases Than Ever

14

Who Uses MySQL?

15

MySQL: The World’s Leading On-Line Database

Powering 9 of the top 10 most trafficked sites on the web* * http://www.alexa.com/topsites

16

Cloud

Web & Enterprise OEM & ISVs

Industry Leaders Rely on MySQL

17

MySQL Is Ubiquitous In The Cloud

Hosting

IaaS, PaaS, DaaS

SaaS

18

Application •  Facebook is a social networking site that connects people with friends and others who work, study and live around them.

Key Business Benefit •  MySQL has enabled facebook to grow to 900 million users.

Why MySQL? •  “We are one of the largest MySQL web sites in production. MySQL has been a revolution for young entrepreneurs.”

Facebook

• 

facebook Web

19

Application •  Alcatel-Lucent’s next generation subscriber database applications

Key Business Benefit •  The subscriber database at the heart of the application needed to provide more flexibility and to deliver higher performance, scalability, and reliability at a lower cost.

Why MySQL? Performance & Lower Cost •  “MySQL Cluster won the performance tests hands down, and met our needs perfectly.” Alain Chastagner, Alcatel-Lucent

Alcatel-Lucent Telecom

20

Application •  Brightmail products provide antispam/

virus, content filtering, data loss prevention to large service providers, SMBs and Global 1000 Organizations.

Key Business Benefit •  Better product performance, zero end-

user administration, lower overall development costs.

Why MySQL? Quality, low admin costs •  “The benefits MySQL brings to the

Brightmail product are its rock-solid quality and performance; its reliability, its robustness, and its very low administrative cost.”

Paul Stephens Senior Brightmail Development

Manager, Symantec

Symantec Embedded

21

Is MySQL a real database?

22

MySQL Database Performance, Reliability, Ease of Use

Support for common development

languages/platforms

Efficient multi-threaded session

handling

Full DML, DDL parsing, cost

based optimizer, caching of queries

and result sets

Flexible Storage Engine options for application specific

storage needs

Flexible logging and physical storage options

23

Security Item

Built-in Accounts SYS, SYSTEM, others Root.

Object Privileges Handled GRANT, REVOKE GRANT, REVOKE. Host consideration

Privilege Granularity Column, Row Column (row via view)

Group Management ROLES On Roadmap

SSL Supported Yes Yes

Encryption Transparent, RC4, DES, AES, etc. AES, DES, MD5 SHA1; 128/256

Auditing Audit subsystem Audit API, MySQL Plug-in

Oracle Datatype MySQL Datatype

CHAR, VARCHAR(2), NCHAR, NVARCHAR

CHAR, VARCHAR, TEXT

CLOB, LONG LONGTEXT

RAW MEDIUMBLOB

LONG RAW, BLOB BLOB

BFILE None

Oracle Datatype MySQL Datatype

NUMBER, DECIMAL INT, BIGINT, DECIMAL

NUMBER (P,S), DECIMAL (P,S)

DECIMAL (P,S)

REAL, DOUBLE DECIMAL

FLOAT DOUBLE

DATE, TIMESTAMP DATETIME,TIMESTAMP

MySQL Security, Data types Comparison

24

Area MySQL Oracle Microsoft SQL Server

Memory Caches •  InnoDB data cache •  InnoDB log cache •  MyISAM key cache •  Dictionary cache •  Query Cache •  User caches

•  Data cache (variants) •  Log buffer •  Shared Pool •  Java Pool •  Large Pool •  PGA •  Query cache (11g)

•  Buffer cache •  SQL cache •  Misc caches (lock,

connection, workspace, etc.)

Redo/Undo Logs •  InnoDB Undo Space •  InnoDB Logs •  Binary Log

•  Undo Tablespace (9i+) •  Redo Logs •  Archive Logs

•  TempDB (2005+) •  Transaction Logs

Data Storage •  Tablespaces •  Table/Index Files •  Format files

•  Tablespaces •  Datafiles

•  Filegroups •  Files

Optimizer •  Cost-based

•  Cost-based •  Cost-based

MySQL Architecture Comparison

25

Feature MySQL Oracle Microsoft Standard Heap Tables and B-Tree Indexes þ þ þ

Partitioned Tables/Indexes þ þ þ

ACID Transaction Support þ þ þ

Row-Level Locking, MVCC (readers don’t block writers) þ þ þ

Server-Enforced Referential Integrity þ þ þ

Advanced Indexing (Clustered, Full-Text) þ þ þ

Robust datatype support (BLOB’s, varchar, datetime, numerics, etc.)

þ þ þ

Replication þ þ þ

Stored Procedures, Triggers, Functions, Cursors, Updateable Views

þ þ þ

Highly-Available Clustered Database þ þ þ

Cost-based Optimizer þ þ þ

Backup with Point-in-Time Recovery þ þ þ

Terabyte Database Size Capable þ þ þ

Open Source þ

MySQL Core Feature Set Comparison

26

What is MySQL Replication?

•  Most widely used feature •  Duplicates database from a “master” to a “slave”

•  Redundant copies of the data provide foundation for High Availability

•  Scale out by distributing queries across the replication cluster

Master

Slaves

27 Copyright 2011 Oracle Corporation 27

MySQL Database High Availability with MySQL Replication

28

•  Leverage current skill set •  Easy to deploy and maintain (“3 minutes to success”) •  Optimized for performance, scale on multi-core systems •  Application level performance tuning •  Fast, reliable online backup, recovery •  Full transactional support •  Automatic crash recovery •  Vertical scalability with Replication (+ Sharding) •  Web-based global monitoring, management, tuning •  Technical support from Oracle and global community

MySQL for the DBA

29

•  Zero start up cost for new projects •  Drivers for most/all development languages and platforms •  Ubiquity across OS platforms •  Stored Procedures, Triggers, Functions, Cursors, Views •  Vertical scalability with Replication (+ Sharding) •  Application specific storage options

•  Transactional, read-intensive, HA, custom, etc.

•  GUI-based design, development, deployment tools •  Web-based global monitoring, management, tuning •  Technical support from Oracle, global community

MySQL for the Developer

30

InnoDB is Default Storage Engine •  ACID Transactions, FKs, Crash Recovery

Improved Performance •  Enhancements in MySQL DB •  Enhancements in InnoDB •  + 360% over 5.1 on Linux •  + 1500% over 5.1 on Windows Improved Availability •  Semi-synchronous Replication •  Replication Heartbeat Improved Usability •  SIGNAL/RESIGNAL •  More Partitioning Options •  New PERFORMANCE_SCHEMA

MySQL 5.6: Best Release Ever!

> 95% of all MySQL apps run on InnoDB

31

•  MySQL 5.6 builds on MySQL 5.5 by improving: •  Performance and Scalability •  Optimizer for better query execution times, diagnostics •  Performance Schema for better instrumentation •  InnoDB for better transactional throughput •  Replication for higher availability, data integrity •  “NotOnlySQL” options for better flexibility

•  5.6 Production-Ready GA – coming soon!

MySQL 5.6: A Better MySQL.

dev.mysql.com/downloads/mysql/

32

MySQL Cluster High Write Scalability, Real Time Performance, 99.999% Uptime

Copyright 2011 Oracle Corporation 32

•  Web •  High Volume OLTP •  eCommerce •  User Profile Management •  Session Management & Caching •  Content Management •  Online Gaming

•  Telecoms •  Subscriber Databases (HLR/HSS) •  Service Delivery Platforms •  VoIP, IPTV & VoD •  Mobile Content Delivery •  Mobile Payments •  LTE Access http://www.mysql.com/customers/cluster/

33

MySQL Cluster Ideal For The Web, Cloud

•  Auto-sharding for transparent scaling •  Elastic, on-demand scalability •  Multi-master for write-intensive applications •  Shared nothing, distributed design for 99.999% uptime •  Auto failover and self healing recovery •  Geo-redundancy supporting multiple Availability Zones •  Low latency, real-time responsiveness

34

MySQL Cluster Architecture

Data Nodes

Node Group 1

F1

F3

F3

F1

Nod

e 1

Nod

e 2

Node Group 2

F2

F4

F4

F2

Nod

e 3

Nod

e 4

Application Nodes

Cluster Mgmt

Cluster Mgmt

REST JPA

35

MySQL Cluster 7.4

•  70x Higher Complex Query Performance: Adaptive Query Localization

•  Native Memcached API •  MySQL 5.5 Server Integration •  VM Support

Enabling Next Generation Web Services

•  Multi-Site Clustering •  Simplified Active / Active Replication

Enhancing Cross Data Center Scalability

•  MySQL Cluster Manager •  Consolidated Privileges

Ease of Use

36

API Flexibility: SQL & NoSQL Combined

• SQL: Complex, relational queries • HTTP / memcached: Key-Value web services

•  Java: Enterprise Apps • NDB API: Real-time services

Mix &

Match

Data Nodes

NDB API

Clients

Native memcached HTTP/REST

JDBC / ODBC

PHP / PERL Python / Ruby

37

What if I need help?

38

..version of MySQL to run?

…servers down?

…will systems scale?

…security policies, change?

…performance issues?

Where/When/How to Tune?

…expensive, slow queries?

…Replication synch issues?

…managing Oracle and MySQL databases?

…Developers productive?

…can I recover?

Tough Questions

39

Use

rs/D

epen

denc

e

“I’ll fix it myself” Spend time, save money, some risk

“I’ll hire more DBAs!” Spend more time, save less money, more risk

Mission-Critical

“We need help!” Spend money,

save time, mitigate risk

Day 1 6 months 1 year

“nice to have”

1 minute of downtime = Lost $

What’s at Risk Revenue and Productivity

40

•  Straight from the Source •  Largest Team of MySQL Experts •  Backed by MySQL Developers •  Forward Compatible Hot Fixes •  MySQL Maintenance Releases •  MySQL Support in 29 Languages •  Direct Access to MySQL Support Engineers •  24/7/365 •  Unlimited Incidents •  Knowledge Base •  MySQL Consultative Support

Oracle Premier Support for MySQL Rely on The Experts - Get Unique Benefits

"The rep that assisted me was simply outstanding. He immediately recognized the cause of my problem

and provided the resolution.”

mysql.com/support/quotes

Only From Oracle

41

..version of MySQL to run?

…servers down?

…will systems scale?

…security policies, change?

…performance issues?

Where/When/How to Tune?

…expensive, slow queries?

…Replication synch issues?

…managing Oracle and MySQL databases?

…Developers productive?

…can I recover?

Tough Questions, Real Solutions

•  MySQL Enterprise Scalability •  MySQL Enterprise Monitor, Advisors, Query Analyzer •  MySQL Consultative Support

•  MySQL Enterprise Monitor, Query Analyzer

•  MySQL Enterprise Monitor, Advisors, Query Analyzer •  MySQL Consultative Support

•  MySQL Enterprise Monitor, Replication Monitor •  Oracle Premier 7x24 Support

•  MySQL Enterprise Scalability •  MySQL Enterprise Monitor, Advisors, Query Analyzer •  MySQL Consultative Support

•  Oracle Premier 24x7 Support •  MySQL Enterprise Monitor, Advisors •  MySQL Enterprise High Availability

•  MySQL External Authentication, Audit •  MySQL Enterprise Monitor, Security Advisor

•  MySQL Workbench SE •  MySQL Enterprise Monitor, Query Analyzer

•  Oracle Premier 24x7 Support

•  MySQL Enterprise Backup

•  MySQL Enterprise Oracle Certifications/Integrations

42

Summary

MySQL is the Leading Web Database

MySQL is Ubiquitous in the Cloud

MySQL is used by the most demanding online properties on the Web

43

•  mysql.com •  MySQL Products and Editions •  TCO calculator •  White Papers •  Customer use cases and success stories

•  dev.mysql.com •  Downloads •  Documentation •  Forums •  PlanetMySQL

•  eDelivery.oracle.com •  Download and evaluate all MySQL products

Learn More

<Insert Picture Here>

MySQL Powering the Web Economy