Vous êtes sur la page 1sur 61

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

Dave Stoes

!yS"# Co$$%nity !anager

David.Stoes&oracle.co$ &Stoer
Slideshare.net/davestoes
Whats New in MySQL 5.6
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2
'he follo(ing is intended to o%tline o%r general prod%ct direction. )t is
intended for infor$ation p%rposes only, and $ay not *e incorporated
into any contract. )t is not a co$$it$ent to deliver any $aterial, code,
or f%nctionality, and sho%ld not *e relied %pon in $aing p%rchasing
decision. 'he develop$ent, release, and ti$ing of any feat%res or
f%nctionality descri*ed for Oracle+s prod%cts re$ains at the sole
discretion of Oracle.
Safe Harbor Statement
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3
Program Agenda

Oracle+s )nvest$ent in !yS"#

D,A/Developer -%ide to !yS"# ../

Develop$ent 0riorities

"%estions1
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2
MySQL 5.6 is GA

'he ,est !yS"# 3elease 4ver

All 5e( 6eat%res and enhance$ents Availa*le to all in the


!yS"# Co$$%nity 4dition

Designed to !eet 7o%r !ost De$anding 8e*, Clo%d and


4$*edded Application 3e9%ire$ents
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .
Wor!ds Most Po"#!ar $"en So#r%e &atabase
:
Over 1. $illion esti$ated installations
:
;sed *y < of top 10 (e* sites in the (orld
:
4$*edded *y = of the top 10 )S>s
:
?1 data*ase in the Clo%d
:
)ntegrated (/@adoop in =0A of ,ig Data platfor$s
:
6ace*ooB 1=2C fans, D3.A 7o7 -ro(th
:
'(itterB 2<C follo(ers, D/EA 7o7 -ro(th
:
5%$ero%s A(ardsB #in%F Go%rnal, C35, 0@0 Architect...
Copyright 2013, Oracle and/or its affiliates. All rights reserved. /
$ra%!e Signifi%ant!y 'n(ests in MySQL

Co$plete Sol%tions

,est of ,reed at 4very #evel

On 0re$ise and in the Clo%d

MySQL) Web* Mobi!e + ,mbedded


Copyright 2013, Oracle and/or its affiliates. All rights reserved. E
-!o#d
Web + ,nter"rise
$,M + 'S.s
'nd#stry Leaders /e!y on MySQL
Copyright 2013, Oracle and/or its affiliates. All rights reserved. =
;5!A'C@4D )5>4S'!45'
@;5D34DS O6 4H043'S
#A3-4S' !yS"# 45-)5443)5- I S;00O3' O3-A5)JA')O5
#)5;H
8)5DO8S
5oS"#
)nnoD,
340#)CA')O5
!yS"# C#;S'43
!yS"# 45'4303)S4 4D)')O5
0436O3!A5C4 )!03O>4!45'S
8O3#DKC#ASS S;00O3'
WEB
CLOUD
4!,4DD4D
S'3A'4-)C
$/A-L, &/'.,S MySQL
'NN$.A0'$N
Copyright 2013, Oracle and/or its affiliates. All rights reserved. <
MySQL ,nter"rise Monitor 1.1
MySQL -!#ster 2.3
MySQL -!#ster Manager 3.4
MySQL Wor5ben%h 5.1
MySQL &atabase 5.5
MySQL ,nter"rise 6a%5#" 7.5
MySQL ,nter"rise Monitor 1.7
MySQL -!#ster Manager 3.3

&ri(ing MySQL
'nno(ation
A!! GA
MySQL ,nter"rise 6a%5#" 7.2
$ra%!e .M 0em"!ate for MySQL
,nter"rise ,dition
MySQL ,nter"rise $ra%!e
-ertifi%ations
MySQL Windows 'nsta!!er
MySQL ,nter"rise Se%#rity
MySQL ,nter"rise S%a!abi!ity
MySQL &atabase 5.6 &M/8
MySQL -!#ster 2.1 &M/
MySQL Labs
9:ear!y and often;<
A!! GA
MySQL -!#ster 2.1
MySQL -!#ster Manager 3.=
MySQL >ti!ities 3.4.6
MySQL Migration Wi?ard
MySQL ,nter"rise 6a%5#" 7.@
MySQL ,nter"rise A#dit
MySQL &atabase 5.6
MySQL -!#ster 2.7 &M/
A 6,00,/
MySQL
8&e(e!o"ment Mi!estone /e!ease
1434
1433
1431A37
A!! GA
A(ai!ab!e Now
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 10

!yS"# Data*ase LCo$$%nity 4ditionM

!yS"# Cl%ster

!yS"# 8or*ench

!yS"# !igration 8iNard

!yS"# ;tilities Lin 0ythonM

!yS"# Connectors

!yS"# 0roFy
$ra%!es 'n(estment in MySQL -omm#nity
A(ai!ab!e to down!oad and #se #nder the GPL
$ys9l.co$/do(nloads/
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 11
MySQL 5.6) 6est /e!ease ,(er
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 12
S!ide to %he%5 if a#dien%e is sti!! awa5e
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 13
MySQL 5.6) S%a!abi!ity

;sers can f%lly %tiliNe latest generations of hard(are and OS

Scales as data vol%$es and %sers gro(


Copyright 2013, Oracle and/or its affiliates. All rights reserved. 12
MySQL 5.6) S%a!abi!ity

;sers can f%lly %tiliNe latest generations of hard(are and OS

Scales as data vol%$es and %sers gro(


Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1.
MySQL 5.5
MySQL 5.6
MySQL 5.6 Sys6en%h 6en%hmar5s
>" to 353B Performan%e Gain
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1/
MySQL 5.5
MySQL 5.6
MySQL 5.6 Sys6en%h 6en%hmar5s
>" to 17=B Performan%e Gain
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1E
MySQL 5.6) 'nno&6
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1=

Several internal i$prove$ents Le.g. Split ernel $%teF, efficient ,%ffer


0ool 6l%shing, $ore...M

Opti$iNed for 3ead Only (orloads

0ersistent Opti$iNer Statistics


K
)ncreased plan sta*ility, acc%rate statistics
K
,etter %ser control, a%to$atic/$an%al

SSD Opti$iNations
K
2, = page siNes
K
.i*d files o%tside of !yS"# data dir
K
separate ta*lespaces for %ndo log
MySQL 5.6) 'nno&6
6etter Performan%e* S%a!abi!ity
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1<

)deal for highly conc%rrent, read intensive (e* apps

4na*les developer control of read only transactional overhead



MySQL 5.6) 'nno&6
$"timi?ed for /ead $n!y Wor5!oads
SET autocommit = 1;
SELECT c FROM sbtest WHERE id=N;
SET autocommit = 0;
START TRANSACTION READ ONL;
SELECT c FROM sbtest WHERE id=N;
COMMIT;
On *y defa%lt
Developer controlled
#ess co$pleFity, $ore apps can *e standardiNed on )nnoD,

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

CREATE INDE!

DRO" INDE!

C#a$%e A&TO'INCREMENT (a)ue *o+ a co)um$

ADD,DRO" FOREI-N .E

Re$ame COL&MN

C#a$%e ROW FORMAT/ .E'0LOC.'SI1E *o+ a tab)e

C#a$%e COL&MN N&LL/ NOT'N&LL

Add/ d+o2/ +eo+de+ COL&MN


MySQL 5.6) 'nno&6
$n!ine &&L $"erations

Adds fleFi*le sche$as, online changes, no do(nti$e

5o need to consider 5oS"# options



Copyright 2013, Oracle and/or its affiliates. All rights reserved. 21

Shortens (ar$ %p ti$es after restart Lfro$ ho%rs to $in%tesM

At sh%tdo(n/start%p or $an%ally at any ti$e

S$all footprint on dis K stores ta*lespace and page )Ds only


MySQL 5.6) 'nno&6
&#m" and /estoreCWarm 6#ffer Poo!
D%$p c%rrent state of ,%ffer 0ool at sh%tdo(nB
m3s4)5 SET i$$odb'bu**e+'2oo)'dum2'at's#utdo6$=ON;
#oad ,%ffer 0ool fro$ d%$p at start%pB
m3s4)5 SET i$$odb'bu**e+'2oo)')oad'at'sta+tu2=ON;

,etter 4lasticity K "%icly spin %p ne( instances to $eet de$and

-reat for Clo%d, @osted, SaaS, OnKpre$ise deploy$ents



Copyright 2013, Oracle and/or its affiliates. All rights reserved. 22

6;##'4H' indeFes on )nnoD, ta*les

Ceys on teFtK*ased content

Speeds %p searches for (ords, phrases

6%lly transactional, fast loo %p

5at%ral lang%age/,oolean $odes, proFi$ity


search, relevance raning
MySQL 5.6) 'nno&6
D#!! 0eEt Sear%h
c+eate tab)e 4uotes
7 id i$t u$si%$ed
auto'i$c+eme$t 2+ima+3
8e3
/aut#o+ (a+c#a+79:;
/ 4uote (a+c#a+7:000;
/ sou+ce (a+c#a+79:;
/ *u))te<t74uote;
; e$%i$e=i$$odb;
se)ect aut#o+ as =A22)e> *+om 4uotes
6#e+e matc#74uote; a%ai$st 7?a22)e@ i$ $atu+a) )a$%ua%e mode;;
#ess co$pleFity, $ore apps can *e standardiNed on )nnoD,
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 23

4na*les eFport/i$port of ta*les *et(een r%nning !yS"# instances


MySQL 5.6) 'nno&6
0rans"ortab!e 0ab!es"a%es
CREATE TA0LE t7c1 INT; e$%i$e=I$$oD0;
FL&SH TA0LE t FOR E!"ORT; AA 4uiesce t#e tab)e a$d c+eate t#e meta data *i)e
Bi$$odb'data'#ome'di+,test,tCc*%
&NLOC. TA0LES;
4FportB
)$portB
CREATE TA0LE t7c1 INT; e$%i$e=I$$oD0; AA i* it does$@t a)+ead3 e<ist
ALTER TA0LE t DISCARD TA0LES"ACE;
AA T#e use+ must sto2 a)) u2dates o$ t#e tab)es/ 2+io+ to t#e IM"ORT
ALTER TA0LE t IM"ORT TA0LES"ACE;

,etter 4lasticity K "%icly spin %p ne( instances to $eet de$and

-reat for Clo%d, @osted, SaaS, OnKpre$ise deploy$ents



Copyright 2013, Oracle and/or its affiliates. All rights reserved. 22
Sa$e app can leverageB

CeyKval%e access to )nnoD,


via fa$iliar !e$cached A0)

S"# for rich 9%eries, GO)5s,


6Cs, etc.

6%lly transactional
MySQL 5.6) 'nno&6
NoSQL Fey .a!#e A%%ess to 'nno&6

;p to <F perfor$ance *oost for


%pdates

-reat for fast data ingestion in ,ig


Data pipeline

Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2.
Performan%e
>" to GE Higher :S,0 C 'NS,/0; 0hro#gh"#t
0
2
2
/
=
10
12
MySQL 5.6) NoSQL 6en%hmar5ing


-!ient -onne%tions
0
P
S
C%sto$iNed GavaK*ased App 'est @arness
Oracle #in%F /
)ntelL3M HeonL3M 2.0 F=/O/2
!yS"# leveragingB
-
= availa*le C0; threads
-
2 -@N, 1/-, 3A!
*logs.oracle.co$/$ys9linnod*/entry/ne(Oenhance$entsOforOinnod*O$e$cached
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2/
MySQL 5.6) $"timi?er
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2E

S%*9%ery Opti$iNations

6ile sort opti$iNations for $ost (e* %se cases


K
2F *etter eFec%tion ti$e P 20s to 10s

)ndeF Condition 0%shdo(n


K
1/0F *etter eFec%tion ti$e P 1.s to <0$s

,atched Cey Access and !%lti 3ange 3ead


K
2=0F *etter eFec%tion ti$e P 2=00s to 10s
MySQL 5.6) $"timi?er

,etter co$pleF 9%ery eFec%tion ti$es ever gro(ing data sets L,ig DataQM

!4! D "%ery AnalyNer ey to %tiliNing f%ll *enefits of ../ Opti$iNer

!yS"# Cons%ltative S%pport provides g%idance on config%ration



Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2=

6or Developers
K
5o $ore reK(riting legacy application or pacaged s%*9%eries into Roins

0erfor$ance
K
D,' 3 "%ery ?13 *ench$arB
K
4Fec%tion ti$e drops fro$ DA7S to seconds
MySQL 5.6) $"timi?er
S#bH#ery $"timi?ations
SELECT tit)e FROM *i)m WHERE *i)m'id IN
7SELECT *i)m'id FROM *i)m'acto+
-RO&" 0 *i)m'id HADIN- cou$t7E; 5 1F;;
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2<

#ate $aterialiNation
K Allo(s fast 4H0#A)5s for vie(s/s%*9%eries
K Avoid $aterialiNation (hen possi*le, faster *ail o%t
K A ey can *e generated for derived ta*les

220F *etter eFec%tion ti$e Ldrops fro$ S= $in to S2 secM


E!"LAIN SELECT E FROM 7SELECT E FROM a'bi%'tab)e;;
SELECT G FROM de+i(ed'tab)e AS dt
Hoi$ tab)e AS t WHERE dtC*)d = tCd)*
MySQL 5.6) $"timi?er
Post"one Materia!i?ation of (iewsCs#bH#eries in
D/$M
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 30

;se so+t'bu**e+'siIe to sort all in $e$ory, avoid creating


inter$ediate sorted files

0rod%ce ordered res%lt set %sing a single ta*le scan

4Fa$ple a*oveB 20 $illion ro(s, %sing defa%lt


so+t'bu**e+'siIe
K 2F *etter eFec%tion ti$e Ldrops fro$ 20s to 10sM
CREATE TA0LE 2+oducts7
2+oductid i$t auto'i$c+eme$t "RIMAR .E/
2+oduct$ame (a+c#a+7F00;
;;
SELECT E FROM 2+oducts ORDER 0 2+oduct$ame LIMIT 100;
MySQL 5.6) $"timi?er
Di!e Sort $"timi?ations with Sma!! Limit
8e* %se case P list top 100 prod%cts sorted *y na$e
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 31
test pe
r
CREATE TA0LE 2e+so$ 7
2e+so$id INTE-ER "RIMAR .E/
*i+st$ame CHAR7F0;/
)ast$ame CHAR7F0;/
2osta)code INTE-ER/
a%e INTE-ER/
add+ess CHAR7J0;/
.E 81 72osta)code/a%e;
; EN-INE=I$$oD0;
SELECT )ast$ame/ *i+st$ame FROM 2e+so$
WHERE 2osta)code 0ETWEEN J000 AND JJ00 AND a%e 0ETWEEN F1 AND FF;
8ith )C0 Disa*led
K 1. s L*%ffer pool 12= !*M
K 1.2 s L*%ffer pool 1.. -*M
8ith )C0 4na*led
K 4Fec%tion ti$e drops to <0 $s for
*oth
MySQL 5.6) $"timi?er
'ndeE -ondition P#shdown 9'-P<
Controlled *y o2timiIe+'s6itc#
i$de<'co$ditio$'2us#do6$
flag
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 32
0 = 1/ 22 32 20 2= ./ /2
.
.0
.00
.000
122.
<./3
2=21
5o ,CA
,CA
Goin ,%ffer SiNe L!,M
"
%
e
r
y

'
i
$
e

L
s
e
c
s
M
,Ee%#tion time
witho#t 6FA I M//
,Ee%#tion time
with 6FA I M//
D,'3 " 13B TC%sto$er Distri*%tion "%eryU
MySQL 5.6) $"timi?er
6at%hed Fey A%%ess 96FA< and M#!tiA/ange /ead 9M//<
Controlled *y
o2timiIe+'s6itc#
*)a%s
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 33

4H0#A)5
K
)5S43', ;0DA'4, and D4#4'4
K
Str%ct%red 4H0#A)5 o%tp%t

Opti$iNer 'races
MySQL 5.6) $"timi?er
6etter &iagnosti%s
SET SESSION O"TIMI1ER'TRACE=?e$ab)ed=o$K;
SELECT 7SELECT 1 FROM t9 WHERE d = c;
AS RES&LT FROM tJ;
SELECT E FROM i$*o+matio$'sc#emaCO"TIMI1ER'TRACE;
>+eco+ds'estimatio$>L M
N
>database>L >test>/
>tab)e>L >t9>/
>+a$%e'a$a)3sis>L N
>tab)e'sca$>L N
>+eco+ds>L F/
>cost>L :CJ0O:
P/
>2ote$tia)'+a$%e'i$dices>L M
N
>i$de<>L >d>/
>usab)e>L t+ue/
>8e3'2a+ts>L M
>d>
Q
P
Q/
>best'co(e+i$%'i$de<'sca$>L N
>i$de<>L >d>/
>cost>L 1C:FOO/
>c#ose$>L t+ue
P/
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 32
-#stomer /eH#irements for /e"!i%ation
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3.
MySQL 5.6) 6est /e"!i%ation Deat#res ,(er
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3/

Si$ple to trac I co$pare replication across the cl%ster


K
;ni9%e identifier for each transaction (ritten to the ,inlog

A%to$atically identify the $ost %pKtoKdate slave for failover

Deploy nKtier replication hierarchies


Master
-TID=1FO:J9
-TID=1FO:J9
-TID=1FO:J9 -TID=1FO:J9
MySQL 5.6) /e"!i%ation
G!oba! 0ransa%tion 'ds
4li$inates the need for complex
3rd party sol%tions
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3E

4na*ling selfKhealing replication topologies

A%to$ated failover I recovery


-
m3s4)*ai)o(e+ ;tility

S(itchover I ad$inistration
-
m3s4)+2)admi$ ;tility

Delivers @A (ithin the core !yS"#


distri*%tion
K
4li$inates the need for 3rd party sol%tions
K
Allo(s eFtensi*ility to s%pport variety of
@A $echanis$s
HA >ti!ities
Monitoring
Dai!ed
Master
S!a(es
Promoted
Master
MySQL 5.6) /e"!i%ation HA >ti!ities 9Python<
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3=
0
2
2
/
=
10
12
M#!tiA0hreaded S!a(e Performan%e
Wor5er 0hreads
Q
#
e
r
i
e
s

"
e
r

S
e
%
o
n
d
MySQL 5.6) /e"!i%ation
M#!tiA0hreaded S!a(es

)ncreases slave thro%ghp%t,


red%cing lag

Applies events to different


data*ases in parallel %sing
conc%rrent S"# threads

.F perfor$ance gain

-reat for syste$s (hich isolate application data %sing data*ases


K Clo%d, SaaS, @osting, other $%ltiKtenant deploy$ents

Sys,ench, r%nning across 10 F sche$as

Oracle #in%F /.1, Oracle S%n 6ire F21.0 $2 Server


Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3<

)ncreases replication thro%ghp%t


*y increasing perfor$ance of the
$aster

Co$$its $%ltiple transactions as


a gro%p to ,inlog on dis

6iner grained locingV red%cing


loc (ait ti$es
Session
6inary
Log
Master
&atabase
03 01
07 0=
Gro#"
%ommit
MySQL 5.6) /e"!i%ation
6inary Log Gro#" -ommit

,etter transactional thro%ghp%t, less slave lag (hen co%pled (ith !'S

!yS"# Cons%ltative S%pport provides g%idance on config%ration


Copyright 2013, Oracle and/or its affiliates. All rights reserved. 20
6inary Log Gro#" -ommit Performan%e
6in!ogJ3
MySQL 5.6
MySQL 5.5
3@4B Performan%e Gain
4
1
=
6
@
34
31
MySQL 5.6 (s. 5.5 A /ead Write 9Lin#E<
-onne%tions
0ransa%tions "er Se%ond
Oracle #in%F /
)ntelL3M HeonL3M 4E.20 F=/O/2
!yS"# leveragingB
-
2= of </ availa*le C0; threads
-
2 -@N, .12-, 3A!
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 21

5e( optionB bi$)o%A+o6Aima%e=mi$ima)

)ncreases thro%ghp%t for $aster and slave


K
3ed%ces ,inlog siNe, $e$ory I net(or *and(idth

Only replicates ele$ents of the 3o( i$age that have changed


0ri$ary Cey Changed Col%$ns
MySQL 5.6) /e"!i%ation
$"timi?ed /ow 6ase /e"!i%ation
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 22
,eforeB

'ransaction DataB in tab!es

3eplication )nfoB in fi!es


!yS"# ../

'ransaction DataB in tab!es

3eplication )nfoB in tab!es


Data
Position 'nfo
-/ASH
0ime
Data
Position 'nfo
0ime

A%to$atic recovery of a slave after a fail%re


K
,inlog and ta*le data are transactionally
consistent

3es%$es replication (itho%t Dev/Op


intervention
K
A%to$atically rolling *ac replication to
last co$$itted event
Atomi%
Atomi%
MySQL 5.6) -rash safe S!a(es
4li$inates ris of data loss or corr%ption
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 23

4ns%res replicated data is correct,


consistent and accessi*le

Detects corr%pt replication events


*efore they+re applied
P
3et%rns an error

0rotects entire replication path


P
!e$ory
P
Dis
P
5et(or
P
,%gs
Master
K
S!a(e
K
MySQL 5.6) /e"!i%ation ,(ent -he%5s#ms
4li$inates ris of data loss or
corr%ption
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 22
MySQL 5.6) Performan%e S%hema
New Instrumentation

State$ents/Stages

'a*le and )ndeF )/O

'a*le locs

;sers/@osts/Acco%nts

5et(or )/O
New Features

Sho( contents of @ost cache

5e( S%$$ary ta*les

4asier config%ration
K
Start %p defa%lts in $y.cnf
K
A%to t%ne

3ed%ced overhead

On *y defa%lt
Mm3s4)dQ
2e+*o+ma$ce'sc#ema=o$
0rovides %ser/session level stats on reso%rce %sage for Clo%dK*ased
cons%$ption/reporting/charge *ac
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2.

State$ents/Stages
K
8hat are $y $ost reso%rce intensive 9%eries1 8here do they spend ti$e1

'a*le/)ndeF )/O, 'a*le #ocs


K
8hich application ta*les/indeFes ca%se the $ost load or contention1

;sers/@osts/Acco%nts
K
8hich application %sers, hosts, acco%nts are cons%$ing the $ost
reso%rces1

5et(or )/O
K
8hat is the net(or load lie1 @o( long do sessions idle1

S%$$aries
K
Aggregated statistics gro%ped *y thread, %ser, host, acco%nt or o*Rect
MySQL 5.6 Performan%e S%hema
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2/
!aRor overha%l of pass(ord handling

0rovide alternatives to sho(ing pass(ords in plain


teFt

Assess/4nforce pass(ord strength policies

4nforce ne( pass(ord at neFt login

Stronger pass(ord hashing


MySQL 5.6) Se%#rity
Aligns !yS"# %ser sec%rity/pass(ord policies (ith Oracle g%idelines
and $ost co$$on ind%stry SO0s
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2E

TIME/TIMESTAMP/DATETIME K fractional second precision


CREATE TA0LE t1 7t TIME7O;/ dt DATETIME79;;;

TIMESTAMP/DATETIME P defa%lt /a%to %pdate W C;3345'O')!4S'A!0


CREATE TA0LE t1 7
ts TIMESTAM" DEFA&LT C&RRENT'TIMESTAM" ON &"DATE C&RRENT'TIMESTAM"/
dt DATETIME DEFA&LT C&RRENT'TIMESTAM" ON &"DATE C&RRENT'TIMESTAM" ;;

TIMESTAMP P no( n%lla*le *y defa%lt


MySQL 5.6) &ata 0y"es
)$proves ease of %se for developers
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2=

!yS"# Diagnostics Area P 2 inds of infor$ation


K
State$ent P affected ro(s co%nt, n%$*er of conditions that occ%rred
K
Condition P error code and $essage

MySQL 5.6) 6etter -ondition Hand!ing
statement_information_item_nameB
NUMBER
| ROW_COUNT
condition_information_item_nameB
CLASS_ORIGIN
| SUBCLASS_ORIGIN
| RETURNED_SQLSTATE
| MESSAGE_TEXT
| MYSQL_ERRNO
| CONSTRAINT_CATALOG
| CONSTRAINT_SCHEMA
| CONSTRAINT_NAME
| CATALOG_NAME
| SCHEMA_NAME
| TABLE_NAME
| COLUMN_NAME
| CURSOR_NAME
)$proves ease of %se for developers
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2<
-ET DIA-NOSTICS
K
0rovides standard interface to !yS"# Diagnostics Area
MySQL 5.6) 6etter -ondition Hand!ing
mysql> DRO" TA0LE testC$o'suc#'tab)e;
ERROR !" #$%S!%&' U()(*+( ,-.l/ 0,/s,1(*_s234_,-.l/0
mysql> -ET DIA-NOSTICS CONDITION 1
5> R21 = RET&RNED'SSLSTATE/ R2F = MESSA-E'TE!T;
mysql> SELECT R21/ R2F;
6555555565555555555555555555555555555555555556
| 78 | 78% |
6555555565555555555555555555555555555555555556
| $%S!% | U()(*+( ,-.l/ 0,/s,1(*_s234_,-.l/0 |
6555555565555555555555555555555555555555555556
)$proves ease of %se for developers
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .0

;p to = partitions/s%*Kpartitions per ta*le

4Fplicit partition selection in 9%eries, D!# LSELECT9 INSERT9 UPDATE9


DELETE9 REPLACE9 LOAD DATA9 LOAD XMLM
SELECT E FROM t "ARTITION 720/ 21; WHERE c T J

)$port/eFport partitions to/fro$ partitioned ta*les to/fro$ nonKpartitioned ta*les


MySQL 5.6) 'm"ro(ed Partitioning
mysql> ALTER TA0LE t E!CHAN-E "ARTITION 20 WITH TA0LE tF;
Q2/:y O;9 ! :*+s -<</3,/= #!1%> s/3&

,etter scala*ility for all applications

)$proves ease of %se for developers


Copyright 2013, Oracle and/or its affiliates. All rights reserved. .1

,etter o%tKofKtheK*oF perfor$ance on $odern architect%res

5e( fiFed defa%lts and a%toKt%ning *ased on related para$eters,


host config%ration

Can *e $odified after installation L$y.cnf or $y.iniM

All ne( defa%lts and a%toKt%ned settings detailed in ../ docs


MySQL 5.6) New &efa#!t Settings
0rovides *etter defa%lt perfor$ance/scale for
$ost !yS"# %se cases
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .2
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .3
!yS"# 6a*ric

Shard and reKshard yo%r data

3eplication gro%ps

0lease help *%ild this toolQ


Copyright 2013, Oracle and/or its affiliates. All rights reserved. .2
!yS"# 8or*ench
Copyright 2013, Oracle and/or its affiliates. All rights reserved. ..
MySQL 5.6) 'n S#mmary
Copyright 2013, Oracle and/or its affiliates. All rights reserved. ./

Opti$iNed for 8e*, Clo%dK*ased, 4$*edded %se cases

Si$plified, 0l%gga*le architect%re


K
!aintaina*ility, $ore eFtensi*le
K
!ore 5oS"# options L@''0, GSO5, GavaScript, etc.M

3efactoring
K
Data Dictionary in )nnoD,
K
Opti$iNer/0arser/0rotocol

)nnoD,
K
Opti$iNed for SSD
K
-)S

4asy @A, 3eplication and Sharding


MySQL &atabase &e(e!o"ment Priorities
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .E

$ys9l.co$
K
!yS"# 0rod%cts, 4ditions, 'raining, Cons%lting
K
'CO calc%lator
K
C%sto$er %se cases and s%ccess stories

dev.$ys9l.co$
K
Do(nloads, Doc%$entation
K
6or%$s
K
0lanet!yS"#

eDelivery.oracle.co$
K
Do(nload and eval%ate all !yS"# prod%cts
Learn More
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .=
New MySQL 5.6 0raining
#earn a*o%t the (orld+s $ost pop%lar openKso%rce data*ase
oracle.co$/ed%cation/$ys9l
Learn MySQL Drom $ra%!e
:
4FpertKled training to help yo%
install, config%re, and
ad$inister !yS"# ../.
:
4Ftensive handsKon practices
g%ide yo% thro%gh each
concept
:
4Fplore realK(orld pro*le$s
and discover *est practices
as yo% (or (ith the tools
and techni9%es %sed *y
professional !yS"#
data*ase ad$inistrators
:
Content developed in
colla*oration (ith prod%ct
engineering.
:
Availa*le in traditional or virt%al classroo$
as (ell as selfKst%dy for$ats.
:
C%sto$ training sol%tions to $atch yo%r
organiNation+s specific *%siness needs
:
,aced *y Oracle ;niversity+s 344B
Satisfa%tion Program
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .<
MySQL 5.6 -ertifi%ations

5e( D,A and Developer 4Fa$s

One eFa$ per cert

X.0 (hile in *eta


Copyright 2013, Oracle and/or its affiliates. All rights reserved. /0
.irt#a! &e(e!o"er &ay A MySQL

#earn the f%nda$ental no(ledge as (ell as latest %pdates in


!yS"#

Ceynote, presentations, and @andsKon #a*s

Sessions incl%de )nnoD,, Opti$iNer, 0erfor$ance Sche$a,


perfor$ance t%ning, replication, !yS"# 4nterprise !onitor, and
$ore

'(o online events


P
A$ericas and CanadaB !arch 12 & <a$ P 1p$ 0'
P
4%rope, !iddle 4ast, and AfricaB !arch 1< & <B00 P 13B00 ;'C/-!'
/egister Now httpB//*it.ly/>DD!yS"#

-et *etter (ith !yS"#, right fro$ yo%r co$p%terQ


Copyright 2013, Oracle and/or its affiliates. All rights reserved. /1

"%estions1
&e(e!o"er and &6A G#ide to
Whats New in MySQL 5.6
&a(id.Sto5esL$ra%!e.%om
Lsto5er
s!ideshare.netCda(esto5es

Vous aimerez peut-être aussi