You are on page 1of 54

MySQL,

Ivan.Tu@Oracle.Com
MySQL Principal Sales Consultant
Oracle LLC.

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


Oracle
Oracle

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 3
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 4
MySQL Cluster Manager 1.4
MySQL Utilities 1.6
MySQL MySQL Enterprise Backup 3.7
Oracle VM Template for MySQL
MySQL Enterprise Backup 4.0
MySQL Enterprise Audit
Enterprise Edition MSQL Enterprise TDE
MySQL Enterprise Oracle MySQL Enterprise Firewall
MySQL Cluster 7.5
MySQL Enterprise Monitor 2.2 Certifications
MySQL Shell
MySQL Cluster 7.1 MySQL Windows Installer MySQL for Excel
MySQL Cluster Manager 1.0 MySQL Enterprise Security MySQL for Visual Studio
MySQL Workbench 5.2 MySQL Enterprise Scalability MySQL Router
MySQL Database 5.5 MySQL As A Document Store
MySQL Enterprise Backup 3.5 MySQL 5.7
MySQL Enterprise Monitor 2.3 MySQL Group Replication
MySQL Cluster Manager 1.1 ! InnoDB Cluster
!
MySQL Database 5.6 DMR* MySQL 8.0 DMR2
MySQL Cluster 7.2 DMR
Available Now!
! MySQL Labs!
A BETTER MySQL
(early and often)

2010 2011 2012-17

*Development Milestone Release


Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL 5.7 !

MySQL 5.6 Performance Schema

InnoDB:
MySQL SYS Schema

:
(, ...) ,

: ! JSON (labs)

And many more new features and enhancements... http://mysqlserverteam.com/the-mysql-5-7-7-release-candidate-is-
available/
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL?



GIS


,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 8
MySQL 5.7: Sysbench:
2x Faster than MySQL 5.6
3x Faster than MySQL 5.5

Intel(R) Xeon(R) CPU E7-4860 x86_64


4 sockets x 10 cores-HT (80 CPU threads)
2.3 GHz, 512 GB RAM
Oracle Linux 6.5

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL 5.7: InnoDB, Memcached NoSQL
MySQL 5.66 1 Million QPS
Facebook

MySQL 5.7 vs 5.6 - InnoDB & Memcached


1200000
Queries per Second

1000000

800000

600000
MySQL 5.7
400000 MySQL 5.6

200000

0
8 16 32 64 128 256 512 1024
Intel(R) Xeon(R) CPU E7-4860 x86_64
Connections 4 sockets x 10 cores-HT (80 CPU threads)
2.3 GHz, 512 GB RAM
Oracle Linux 6.5

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 11
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 12
MySQL 5.7: GIS

Boost.Geometry


OGC
Boost.Geometry !
InnoDB R-tree
ACID,
MVCC,
bounding box
GeoHash
GeoJSON
Helper functions ST_Distance_Sphere()
ST_MakeEnvelope()

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL 5.7: InnoDB

InnoDB Buffer Pool


DBA

UNDO
truncation
ALTER TABLE
VARCHAR,

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL 5.7: InnoDB


N-gram ,
ideographic
MeCab


Token sizes, stop words,

BOOLEAN MODE, NATURAL LANGUAGE MODE

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |



MySQL 8.0
DMR JSON function

?
Invisible index
.frm! Common table expression
DMLACID ,VARCHAR
Role!
InnoDB

redo log
Select for update NOWAIT SKIP LOCK
Crash-safe corruption flag
memcachedget
Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 16
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 17
MySQL Database
High Availability with MySQL Replication

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


Replication
MySQL Enterprise Monitor
24x7 Premier Support
Patch update
Shared Disk/ Virtualization
Options

Monitor

BACKUP
Oracle

Router Group
MySQL Utilities Replication
mysqlfailover
MySQL Connectors
InoDB Cluster
Cluster

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 19


MySQL-
Binary Relay
Log Log
Session Dump I/O SQL

Session thread I/O thread



Dump thread: SQL thread:

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 20


?



/

19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Copyright 2015, Oracle and/or its affiliates. All rights reserved 21

Master 1 Master 2 Master N

Binlog Binlog Binlog


(View)

IO 1 IO 2 IO N

Relay 1 Relay 2 Relay N

Coordinator Coordinator Coordinator Coordinator

W1 W2 WX W1 W2 WX W1 W2 WX W1 W2 WX

Slave

19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Copyright 2015, Oracle and/or its affiliates. All rights reserved 22

- Windows Server
MySQL Windows Slave App App App


Quorum (3rd vote), data (InnoDB + schema)
binaries (optional) (iSCSI
FCAL) Virtual IP

= + InnoDB
,IP

MS Failover Cluster Management snap-in
GUI
Vote Data Bin

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL Group Replication



Application ()
MySQL
Server Optimistic State Machine Replication

API
MySQL Nodes Replication
Plugin

Group Comms

InnoDB
GTID-based replication
PERFORMANCE_SCHEMA

19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Copyright 2015, Oracle and/or its affiliates. All rights reserved 24
! MySQL Router
,MySQL

MySQL,
MySQL Fabric,

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 25


InnoDB Cluster
App Servers with
MySQL Router
High Availability becomes a core
first class feature of MySQL!
MySQL Shell
Setup, Manage,
Orchestrate

MySQL Group Replication

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 26


MySQL

Clients
Application
Layer

Nodes
Data

Mgmt
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL
On-Line Scaling

Clients
Application
Layer

Nodes
Data

Mgmt
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL

Clients
Application
Layer

Nodes
Data

Mgmt
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |

- ,

Router

MySQL Router
MySQL Router

Group Replication-
MySQL Cluster Clusterware
59

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 31
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 32
MySQL 5.7: JSON

JSON

JSON functions
,,
MySQL ConnectorsX Dav API
NoSQLJSON
M(ySQL)EAN
JSON
SQL

InnoDB
expression analyzer functional index

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL NoSQL API
Java, Python, C++, .Net, Node.js
JDBC Driver X Dev API
SQL API CRUD API MySQL
Memcached
Std Protocol X Protocol shell
Std Protocol X Protocol X and Std
3306 33060 Protocols

MySQL
Plugins
Core
X Protocol Plugin Memcached Plugin

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 34


MySQL Document StoreMySQLIT
-

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 35
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 36
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 37
MySQL



ORACLE

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL



()

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL Query Analyzer Improved





Query Response Time index
(QRTi) With the MySQL Query Analyzer, we were able to identify and
analyze problematic SQL code, and triple our database
performance. More importantly, we were able to accomplish this in
three days, rather than taking weeks.

Keith Souhrada
Software Development Engineer
Big Fish Games

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL
MySQL()
MySQL
MySQL
API
MySQL 5.5 Sysbench OLTP Read/Write

8,000
Transactions Per Second

7,000
6,000
5,000
4,000
3,000
2,000
1,000
0 MySQL
MySQL

Simultaneous Database Connections

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL

MySQL


XML Oracle
MySQL 5.5 API
MySQL 5.5.28
5.7.9JSON
MySQL
(HIPAA, Sarbanes-Oxley, PCI, .)

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL
MySQL

Tables, Indexes
Server, database, or object-level
ibbackup


1. InnoDB
Tables & Indexes

MyISAM MEB Backup
Files
MySQL
Database Files
(Windows, Linux, Unix)

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL Enterprise Backup
49x
Backup: 73 GB Database More
300 Performance

250

200
Minutes

150

100

50

0
mysqldump MySQL Enterprise 3 4
Backup

MySQL Enterprise Backup: 49x Faster than mysqldump

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL Enterprise Backup
Restore: 73 GB Database 80x
1200 More
Performance

1000

800
Minutes

600

400

200

0
mysqldump MySQL Enterprise 3 4
Backup

MySQL Enterprise Backup: 80x Faster than mysqldump

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


MySQL Enterprise Firewall
SQL
: SQL
:SQL

: SQL
SQL
Select *.* from employee where id=22 Allow

Select *.* from employee where id=22 or 1=1

Applications
White List Block
Detect & Alert
Intrusion Detection

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 46


MySQL Enterprise Encryption
Oracle Key Vault ()

Applications

Sensitive Data
Encryption Encrypted Decryption Sensitive Data
Public Key Data Private Key

Oracle Key Vault


- Oracle Key Vault
- (e.g. OpenSSL)

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | 47


Oracle MySQL


MySQL
29

24x7x365


Copyright 2015, Oracle and/or its affiliates. All rights reserved. |



Up to 90% Savings over SQL Server

-Term: 3 Years; Users: Unlimited /Web);


Servers: 4; CPUs/Server: 4; Hardware:
Intel x86; MySQL: MySQL Enterprise
Edition; Microsoft: SQL Server Enterprise
Edition

Copyright 2015, Oracle and/or its affiliates. All rights reserved. |


Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Confidential Oracle Internal/Restricted/Highly Restricted 50
Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Confidential Oracle Internal/Restricted/Highly Restricted 51
MySQL?



GIS


59MySQL
,IT
,MySQL

Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted 52

You might also like