Sie sind auf Seite 1von 24

MySQL

 
Jus*n.borg@oracle.com   benjamin.wood@oracle.com  
The  following  is  intended  to  outline  our  general  product  
direc*on.  It  is  intended  for  informa*on  purposes  only,  and  
may  not  be  incorporated  into  any  contract.  It  is  not  a  
commitment  to  deliver  any  material,  code,  or  func*onality,  
and  should  not  be  relied  upon  in  making  purchasing  
decisions.  
The  development,  release,  and  *ming  of  any  features  or  
func*onality  described  for  Oracle’s  products  remain  at  the  
sole  discre*on  of  Oracle.  
HA/DR  
MySQL  Replica*on  

MySQL  #1   MySQL  #2  

Local  Storage   Local  Storage  

Async  by  default.  


Failover  handled  elsewhere.  
Useful  for:  
  Local  or  remote  failover  
  Read  scaling  
  Upgrade  and  u*lity  purposes  
InnoDB  Cluster  
App  Server   App  Server  

MySQL   MySQL  
ROUTER   ROUTER  

MySQL  #1   MySQL  #2   MySQL  #3  

Local  Storage   Local  Storage   Local  Storage  

GROUP  REPLICATION  
MySQL  SHELL  
InnoDB  Cluster  

Semi-­‐sync  behavior.  
Failover  handling  is  automa*c.  
Useful  for:  
  Local  HA  
  Read  scaling  
  Upgrade  and  u*lity  purposes  
Ac*ve/Ac*ve  Mul*-­‐Data  Center  Setup  

Regional  Clients   Regional  Clients  

Async  Replica;on  

Regional  Data  Center   Regional  Data  Center  


7  
Security  
MySQL  Enterprise  Firewall  
  SQL  Injec*on  Protec*on  with  Posi*ve  Security  
Model  
Select *.* from employee where id=22! ✔  Allow  &  Log  

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


Applica;ons   White   ✖ Block  &  Log  
List  

•  Out  of  policy  database  transac*ons  detected  and  blocked  


•  Logging  &  Analysis  

9  
Enterprise  Audit  
Audit  Advanced  Filtering  
Applica*on  Server  

MySQL  Server  
Key  Store  Integra*on  
TDE  Engine  

MySQL  Data  Files  


Password  Complexity  
U*lize  “Password  Valida*on  Plugin”  
  h`ps://dev.mysql.com/doc/refman/5.7/en/validate-­‐
password-­‐plugin.html  

Consider  “Connec*on  Control  Plugin”  


  h`ps://dev.mysql.com/doc/refman/5.7/en/
connec*on-­‐control-­‐plugin.html  

Also  consider  Ac*ve  Directory  or  LDAP  Plugins  


  h`ps://dev.mysql.com/doc/refman/5.7/en/
authen*ca*on-­‐plugins.html  
   
Backup/Recovery  
MySQL  Enterprise  Backup  
•  Nonblocking  backup  wri`en  by  MySQL  development  team  
•  Very  fast,  non-­‐blocking  physical  backup    
•  Stream  to  cloud  storage  services  
•  Incremental,  compression,  encryp*on  op*ons  
•  “Op*mis*c”  backup  op*ons  
Restore  Time  

mysqlbackup

MEB Backup MySQL Database


Files Files
32  gb  database  
Time  in  minutes  
Point  in  Time  Recovery  
h`ps://dev.mysql.com/doc/mysql-­‐enterprise-­‐backup/4.1/en/
advanced.point.html  

mysqlbinlog  -­‐-­‐start-­‐date*me="tLB"  \                  
  -­‐-­‐stop-­‐date.me="tR"  \                    
  binlog.000005  binlog.000006  binlog.000007    |      
   mysql  -­‐u  root  –p  

mysqlbinlog  -­‐-­‐start-­‐posi*on="binary-­‐log-­‐posi.on-­‐corresponding-­‐to-­‐tLB"  \    
  -­‐-­‐stop-­‐posi.on="binary-­‐log-­‐posi.on-­‐corresponding-­‐to-­‐tR"  \                  
  binlog.000005  binlog.000006  binlog.000007    |        
  mysql  -­‐u  root  -­‐p  
Migra*ons  
Migra*ons  

Super  Easy   3rd  party  apps  w/  MySQL  Support  


Pre`y  Easy   In  house  apps  w/  regular  SQL  
Depends   Analy*cs  
Depends   In  house  apps  w/  business  logic  
Gehng  Harder   Apps  w/  DB  specific  *e-­‐ins  
Never   3rd  party  apps  w/o  MySQL  Support  
Migra*on  Tools  

MySQL  Workbench  
Various  ETL  Tools  
GoldenGate  
SQL  Ways  from  Ispirer  
Performance  Tuning  
Performance  Tuning  

Default  config  on  5.7+  is  pre`y  good  


Look  to  configure:  
  innodb_buffer_pool  
  innodb_log_file_size  
  consider  preload  of  buffer  pool  
    h`ps://dev.mysql.com/doc/refman/5.7/en/innodb-­‐preload-­‐buffer-­‐pool.html  
Consulta*ve  Support  for  configura*on  review  
MySQL  Enterprise  Monitor  for  SQL  Tuning    
     
Monitoring  
Monitor  
MySQL  Enterprise  Monitor   Oracle  OEM  Plug  In  

Generally  similar  func*onality.  


Enterprise  Monitor  has  Query  Analysis,  OEM  doesn’t.  
Which  one  to  use?    It  depends.    Can  run  both.  
MySQL  
Jus*n.borg@oracle.com   benjamin.wood@oracle.com  

Das könnte Ihnen auch gefallen