More Related Content
Similar to MySQL: What's New in Version 5.6
Similar to MySQL: What's New in Version 5.6 (20)
MySQL: What's New in Version 5.6
- 1. What is new in MySQL?
Lars Thalmann
Development Director, MySQL Engineering, Oracle
MySQL Replication, Enterprise Backup, Connectors, and Utilities
Highload 2012, 23 October 2012, Moscow
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 2. 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.
2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 3. 12 years with MySQL
2001 Joined Alzato (MySQL Cluster)
(MySQL releases 3.23 GA)
2003 MySQL acquires Alzato
(MySQL 4.0 GA)
2004 MySQL 4.1 GA
2005 MySQL 5.0 GA
2008 Sun acquires MySQL
MySQL 5.1 GA
MySQL Replication, Connectors, 2010 Oracle acquires Sun
Enterprise Backup, Utilities
MySQL & InnoDB in same company
MySQL 5.5 GA
2012 MySQL 5.6 RC, MySQL Cluster 7.3 DMR,
MySQL Enterprise Backup 3.8,
Connector Python GA, ...
3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 4. 2003 MySQL acquires Alzato
“It must be possible to install the software in 15 minutes.”
“The source must be available to everyone.”
“Everyone can download the software.”
Chat systems, Agile development, 250 emails/day
RESULT:
MySQL Cluster became much easier to use.
And Open Source.
4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 5. 2008 Sun acquires MySQL
“Yeah, sure it is fast, but not on real computers.”
“MySQL is only one of many products at Sun.”
“There are people to help, especially with performance.”
RESULT:
MySQL performance started to increase a lot.
5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 6. 2010 Oracle acquires Sun
“Oracle drives innovation. Make MySQL a better MySQL.”
“Security is key.”
“Quality and testing is essential.”
MySQL & InnoDB in the same company
RESULT:
More development than ever before. More secure, more
features, more testing. Huge InnoDB & MySQL performance
improvements.
6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 7. DELIVERING MORE BETTER
ORACLE FASTER
PRODUCTS DRIVES
MySQL INNOVATION
DELIVERING MORE AND
DELIVERING MORE BETTER
BETTER PRODUCTS FASTER
PRODUCTS FASTER
7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 8. Improving the MySQL Experience
Users: MySQL 5.6 RC, MySQL Cluster, Labs
Customers: Additional Commercial Extensions
Oracle customers using MySQL: Integrations
Across all major platforms
8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 9. Driving MySQL Innovation
MySQL Enterprise Backup 3.7 MySQL Cluster 7.2
Oracle VM Template for MySQL MySQL Utilities 1.0.6
Enterprise Edition Microsoft SQL Server
MySQL Enterprise Oracle Migration Wizard
MySQL Enterprise Monitor 2.2
Certifications All GA!
MySQL Cluster 7.1
MySQL Windows Installer
MySQL Cluster Manager 1.0
New MySQL Enterprise MySQL Database 5.6.6 DMR
MySQL Workbench 5.2
Commercial Extensions MySQL Cluster 7.3 in MySQL
MySQL Database 5.5 Labs
All GA!
MySQL Enterprise Backup 3.5
MySQL Enterprise Monitor 2.3 MySQL Database 5.6 DMR*
MySQL Cluster Manager 1.1 MySQL Cluster 7.2 DMR
MySQL Labs!
All GA! (“early and often”)
2010 2011 Q1-Q2 2012
*Development Milestone Release
9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 10. Oracle Significantly Invests in MySQL
Complete Solutions
Best of Breed at Every Level
On Premise and in the Cloud
MySQL: Web, Mobile & Embedded
10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 11. Best of Breed Components for LAMP Apps
Oracle Linux Oracle VM
Higher Performance, Oracle VM 3.0 4x More
Unbreakable Enterprise Kernel Scalable than VMWare
Lower Cost, Free to download & Lower Cost, Free to download &
distribute distribute
Management Tools included Application-Driven, Awareness
High Availability included of what’s running inside the VM
Easier Deployment Integrated Management
Accelerated Deployment
11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 12. 2.2BN USERS
630M WEB SITES
955M USERS
552M DAILY ACTIVE
40% DATA GROWTH
PER YEAR
72 HOURS
UPLOADED EVERY
MINUTE
400m TWEETS $1TR BY 2013
PER DAY $700BN IN 2011
5.9BN MOBILE SUBS IN 2011
OVER 1.2 BILLION iOS & ANDROID 85% HANDSETS
APPS IN 2012 SHIPPED WITH A
BROWSER
12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 13. The Best of Both Words - No Trade-Offs
SQL AND NoSQL
Mix Key Value & Complex Queries
Transactional Integrity
Standards & Skillsets
13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 14. Improving the User Experience on Windows
New Microsoft SQL Server to MySQL Migration Wizard
New “MySQL for Excel” plug-in
New MySQL Notifier
Enhanced Installer
Reduce your Database
TCO by up to 90%
Hardware Configuration:
Intel x86_64 Servers: 4, CPUs/Server: 4, Cores/CPU: 8
14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 15. STRONG MySQL MOMENTUM
Over 15 million estimated active installations
Facebook: 163K fans, +35% YoY Growth
Twitter: 25K followers, +67% YoY Growth
MySQL Newsletter: 1,35 M subscribers, +20% YoY Growth
Events: Dozens of fully booked Dev Days & Tech Tours
Awards: CRN, Linux Journal, PHP Architect...
MySQL Ubiquitous in the Cloud
MySQL Connect 2012 at Oracle Open World
15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 16. Announcements from
MySQL Connect 2012, Oracle Open World
MySQL 5.6 RC
MySQL Enterprise Backup 3.8
MySQL Cluster 7.3 First Development Milestone Release
MySQL Connector Python GA
New MySQL Enterprise Commercial Extensions
16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 17. MySQL 5.6 RC
17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 18. MySQL 5.6 Release Candidate
MySQL 5.6 builds on MySQL 5.5 by improving:
- InnoDB for better transactional throughput, availability
- Optimizer for better query execution times, diagnostics
- Replication for high availability, data integrity
- Performance Schema for better instrumentation
- Other Important Enhancements
Available Now! Get it here:
dev.mysql.com/downloads/mysql/
18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 19. MySQL 5.6: InnoDB
Better Performance, Scalability
- Removal of legacy mutexes, CPU cache sharing
- Improved threading and concurrency
- Optimizations for Read Only workloads
- SSD optimizations
Better Availability
- Online DDL operations
- Dump, restore/warm buffer pool
More Flexibility
- Full Text Search
- Transportable Tablespaces
- NoSQL, Key-value access to InnoDB
19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 20. MySQL 5.6: InnoDB
Key-value access to InnoDB
Best of Both Worlds
- via industry standard Memcached API
- Use existing Memcached clients
Application - Bypasses full SQL parsing
SQL NoSQL NotOnlySQL access
(Memcached
(MySQL Client) - For key-value operations
Protocol)
mysqld
- SQL for rich queries, JOINs, FKs, etc.
MySQL Server Memcached plugin Implemented via:
- Memcached plug-in to mysqld
InnoDB Storage Engine - Memcached mapped to native InnoDB
API
- Shared process for ultra-low latency
20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 21. MySQL 5.6: Optimizer
Subquery Optimizations
File sort optimizations with small limit
Index Condition Pushdown
Postpone Materialization of views/subqueries in FROM
Batched Key Access and Multi Range Read
Better Diagnostics
Huge Performance Improvements!
21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 22. MySQL 5.6: Optimizer "records_estimation": [
{
Better Diagnostics "database": "test",
"table": "t6",
EXPLAIN "range_analysis": {
"table_scan": {
- INSERT, UPDATE, and DELETE "records": 2,
"cost": 4.5034
- Structured EXPLAIN output },
"potential_range_indices": [
Optimizer Traces {
"index": "d",
"usable": true,
"key_parts": [
SET SESSION.OPTIMIZER_TRACE=‘enabled=on’; "d"
]
SELECT (SELECT 1 FROM t6 WHERE d = c) }
AS RESULT FROM t5; ],
"best_covering_index_scan": {
SELECT * FROM information_schema.OPTIMIZER_TRACE;
"index": "d",
"cost": 1.4233,
"chosen": true
},
22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 23. MySQL 5.6 Replication: Design Goals
PERFORMANCE
• Less stale reads from slaves
• Reduces risk of data loss if master fails
FAILOVER & RECOVERY
• Minimize service interruption
• Self-Healing
DATA INTEGRITY
• Correct, consistent & accessible
AGILITY
• Reducing TCO
• Quickly responding to business demand
23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 24. MySQL 5.6 Replication: Enhancements
PERFORMANCE
• Multi-Threaded Slaves
• Binary Log Group Commit
• Optimized Row-Based Replication
FAILOVER & RECOVERY
• Global Transaction Identifiers
• Replication Failover & Admin Utilities
• Crash Safe Slaves & Binlogs
DATA INTEGRITY
• Replication Event Checksums
AGILITY
• Time Delayed Replication
• Remote Binlog Backup
• Informational Log Events
24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 25. 5x Faster Replication
Multi-Threaded Slaves
– Updates applied in parallel, across schemas
Multi-Threaded Slave Performance – Increases slave throughput
Binary Log Group Commit
300
250
– Groups updates to the binlog
Queries per Second
– Increases master performance
200
150
Optimized Row Based Replication
100 – Only replicates row elements that have
changed
50
– Reduces binlog size
0
0 5 10
Worker Threads
25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 26. Failover & Recovery: Self-Healing Replication
Global Transaction Identifiers
Failed – Simple to track replication progress
Master through the cluster
MySQL HA Utilities
Promoted – Automate failover, switchover & recovery
Master
– Fully configurable slave promotion
policies
Crash-Safe Slaves & Binlog
– Automatically recover transactions and
replication state
Slaves
26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 27. MySQL 5.6 Performance Schema
New Instrumentation New Features
Statements/Stages Host cache
Table and Index I/O New Summary tables
Table locks Easier configuration
Users/Hosts/Accounts - Start up defaults in my.cnf
Network I/O - Auto tune
Reduced overhead
27 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 28. MySQL 5.6: Security
Major overhaul of password handling, improved encryption
- Provide alternatives to showing passwords in plain text
- Assess/Enforce password strength policies
- Enforce new password at next login
- Stronger password hashing
28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 29. MySQL 5.6: Other Important Enhancements
New default configuration optimizations
TIME/TIMESTAMP/DATETIME - fractional second precision
TIMESTAMP/DATETME – default /auto update = CURENT_TIMESTAMP
TIMESTAMP – now nullable by default
Improved Partitioning
- Better performance for tables w/100s of partitions
- Import/export tables to/from partitioned tables
- Explicit partition selection
GIS: Precise spatial operations
and more...
Get it now!
29 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
dev.mysql.com/downloads/mysql/
- 31. MySQL Cluster 7.3 DMR #1: Foreign Keys
Brings MySQL Cluster to a broader range of workloads
– Packaged apps, custom projects
Adds powerful functionality while reducing complexity
– App logic & data model
Enabled by default
town(PK) county county(PK) country
Enforced for SQL Reading Berkshire Shropshire & England
NoSQL APIs Shrewsbury APIs
Shropshire Buckinghamshire England
Maidenhead Berkshire Berkshire England
On-line add and drop Oxford Oxfordshire Oxfordshire England
31 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 32. MySQL Cluster 7.3: Node.js NoSQL API
Early Access Feature
Native JavaScript access to MySQL Cluster
– End-to-End JavaScript: browser to the app and
Clients database
– Storing and retrieving JavaScript objects directly in
MySQL Cluster
– Eliminate SQL transformation
V8 JavaScript Engine Implemented as a module for node.js
– Integrates full Cluster API library within the web app
MySQL Cluster Node.js Module
Couples high performance, distributed apps, with high
performance distributed database
MySQL Cluster Data Nodes
32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 33. Evaluating MySQL Cluster 7.3
Development Release Tab
http://dev.mysql.com/downloads/cluster/ http://labs.mysql.com/
33 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 35. MySQL Enterprise Edition
Highest Levels of MySQL Scalability, Security and Uptime
Oracle Premier
Lifetime Support
MySQL Enterprise Oracle Product
Security Certifications/Integrations
MySQL Enterprise MySQL Enterprise
Audit Monitor/Query Analyzer
MySQL Enterprise MySQL Enterprise
Scalability Backup
MySQL Enterprise
High Availability MySQL Workbench
35 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 36. #1 DBA Concern - Is My Data Safe?
…Who can see it? Do I know…
…What did they see? …what happened?
…Who can change it? …and when?
…What did they change? Can I prove what I believe
to be true?
…Are my apps compliant with company and legal requirements?
36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 37. MySQL Enterprise Audit
Policy-based Auditing for MySQL Applications
Out-of-the-box logging of connections, logins, query activity across
all or specific MySQL servers
User defined policies, filtering and log rotation
Dynamically enabled, disabled: no server restart
XML-based audit stream per Oracle audit specification
MySQL 5.5.28 and higher
– Get it here: support.oracle.com and edelivery.oracle.com
Adds regulatory compliance to MySQL applications
37 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 38. MySQL Enterprise Audit Flow
3. Joe’s connection, query logged
Server1
1. DBA Enables on Server1
2. User Joe Connects and Queries Server1
38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 39. Certified And Supported MySQL HA Solutions
MySQL 5.6 Oracle
Replication Solaris Windows MySQL
VM DRBD
(after GA) Cluster Cluster Cluster
Template
Auto-Failover & Migration Yes Yes Yes Yes Yes Yes
Zero Data Loss Semi-Sync Yes Yes Yes Yes Yes
Platform Support All Linux Solaris Windows Linux All
Master + Active/ Active/ Active/ Active/ Multi-
Clustering Mode Slaves Passive Passive Passive Passive Master
Shared Storage No Yes Yes Yes No No
Availability Design 99.9% 99.99% 99.99% 99.95% 99.99% 99.999%
Single Vendor Support Yes Yes Yes No Yes Yes
39 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 40. Operational Best Practices for HA
Training
Consulting
24 x 7 x 365 Global Support
Database Management and Monitoring
40 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 42. MySQL Installer for Windows
MySQL Database
MySQL Connectors (.Net and ODBC)
MySQL Workbench
New! Migration Wizard (SQL Server, Sybase, PostgreSQL to MySQL)
New! MySQL Notifier Tray App
New! MySQL for Excel
MySQL Utilities (in Python)
MySQL Docs
Sample Databases http://www.mysql.com/downloads/installer/
From download to development in 3 mins! All-in-one package.
42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 43. MySQL Workbench
New! Database Migration Wizard
Database Design for SQL Server, Sybase, PostgreSQL
- Visual Design, modeling
- Forward/Reverse Engineer
- Schema validation, Schema doc
SQL Development
- SQL Editor - Color Syntax Highlighting
- Objects - Import/Export, Browse/Edit
Database Administration
- Status, Configuration, Start/Stop
- Users, Security, Sessions
- Import/Export Dump Files
43 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 44. 44 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 45. Interesting ideas for the future
Supporting new businesses on Web & Cloud
Supporting young entrepreneurs
More and smarter MySQL Utilities
Support for elasticity & sharding with MySQL
Flexible replication in any topology
Easier to use replication
More automatic operations
Easier to manage high availability
Extended MySQL Enterprise Backup
Intelligent connectors
More performance improvements
45 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
- 46. Summary: Some of the highlights of today!
MySQL 5.6 RC (lots of features + performance improvements)
MySQL Utilities (shipped with Workbench)
MySQL Enterprise Backup 3.8
MySQL Cluster 7.3
Connector Python GA
Windows Installer
Database Migration Wizard
Multiple HA solutions
MySQL Enterprise Audit
NoSQL interfaces
46 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.