![Page 1: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/1.jpg)
<Insert Picture Here>
Henrique Leandro
Airton Lastori [email protected]
Nov-2012
MySQL Enterprise Monitor
para Desenvolvedores
![Page 2: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/2.jpg)
Agenda
Introdução MySQL
Portifolio MySQL
O Desenvolvedor MySQL
Desafio #1
Enterprise Monitor Demo
![Page 4: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/4.jpg)
4
MySQL
Community e Enterprise
![Page 5: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/5.jpg)
5
Portfolio Open Source (GPL)
• MySQL Database (Community Server) 5.5.28 GA e 5.6.8 RC
• MySQL Cluster (NDB Community) 7.2.8 GA
• MySQL Workbench Community Edition 5.2.44 GA
• MySQL Utilities (em Python)
• MySQL Connectors
•ODBC, Java, .Net, C, C++, PHP, OpenOffice
• MySQL Proxy 0.8.2 Alpha
• Documentação: livre para uso, não coberto pela GPL
• Forums dev.mysql.com/downloads
![Page 6: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/6.jpg)
6
MySQL Enterprise Edition
Mais produtividade, menores riscos e maior capacidade
para o MySQL.
Oracle Premier Lifetime Support
Oracle Product
Certifications/Integrations
MySQL Enterprise
High Availability
MySQL Enterprise
Security
MySQL Enterprise
Scalability
MySQL Enterprise
Backup
MySQL Enterprise
Monitor/Query Analyzer
MySQL Workbench
MySQL Enterprise
Audit
![Page 7: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/7.jpg)
… qual versão do MySQL rodar?
… servidores down?
… os sistemas escalarão?
… política de segurança, muda?
… problemas de performance?
… onde, quando, como “tunar”?
… queries lentas, custosas?
… problemas de replicação?
… produtividade de desenv./QA?
… posso recuperar?
Questões difíceis
![Page 8: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/8.jpg)
O Desenvolvedor MySQL ?
![Page 9: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/9.jpg)
O Desenvolvedor MySQL
Criação e utilização correta de índices
Responsabilidade sobre a performance geral da aplicação, além de outros
requisitos não funcionais
Correção de problemas em QA ou Produção (inclusive reescrita de queries
para otimização)
Definir mecanismos eficientes de interação entre aplicação e BD
Ajuste de variáveis no MySQL Server (Teste Estresse)
Monitoramento e ações corretivas
Otimização do esquema de dados
#1 Identificar e melhorar queries que consomem muitos recursos
![Page 10: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/10.jpg)
Identificar e Melhorar Queries
1. Seja “O Caçador” de Queries •MySQL Query Analyzer •Slow query log, SHOW PROCESSLIST 2. Aplique melhorias •indexação, EXPLAIN •reescrita de queries •re-modelagem do esquema de dados
"No Braço” ou Via Ferramenta
![Page 11: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/11.jpg)
11
© 2011 Oracle Corporation – Proprietary and Confidential
MySQL Servers w/Agent
Customer Datacenter
Enterprise
Dashboard
Repository
Enterprise MonitorAgents Connecting Locally
Service Manager
![Page 12: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/12.jpg)
DEMO
![Page 13: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/13.jpg)
Boas práticas para Melhorar Performance
•Não criar índices desnecessários
•Não criar indices com inicio idêntico
•Não usar toda string para os índices •Não encapsule seus índices no WHERE
•Evite % no início do LIKE em um índice
•Thread Pool
•InnoDB
•Use Suporte Consultivo do Enterprise
http://dev.mysql.com/doc/refman/5.5/en/using-explain.html
![Page 14: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/14.jpg)
Mais sobre MySQL
![Page 15: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/15.jpg)
MySQL Treinamento e Certificação
MySQL Boot Camp
Accelerated
MySQL Performance
Tuning Boot Camp
Accelerated
MySQL for Begginers
MySQL for Database
Administrators
MySQL Performance
Tuning
MySQL High Availability
MySQL Cluster
MySQL DBA
MySQL Boot Camp
Accelerated
MySQL for Developers
MySQL Performance
Tuning Boot Camp
Accelerated
MySQL for Begginers
MySQL and PHP
Developing Dynamic
Web Applicationg
MySQL Advanced Stored
Procedures
MySQLDeveloper
http://education.oracle.com
Treinamentos
Certificações
Opcional
Necessário
![Page 16: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/16.jpg)
… qual versão do MySQL rodar?
… servidores down?
… os sistemas escalarão?
… política de segurança, muda?
… problemas de performance?
… onde, quando, como “tunar”?
… queries lentas, custosas?
… problemas de replicação?
… produtividade de desenv./QA?
… posso recuperar?
Questões Difíceis, Soluções Reais
• 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 7x24 Support
• MySQL Enterprise Monitor, Advisors
• MySQL Enterprise High Availability
• MySQL External Authentication
• MySQL Enterprise Monitor, Security Advisor
• MySQL Workbench SE
• MySQL Enterprise Monitor, Query Analyzer
• Oracle Premier 7x24 Support
• MySQL Enterprise Backup
![Page 17: MySQL Enterprise Monitor para Desenvolvedores](https://reader033.vdocuments.mx/reader033/viewer/2022060110/5560c1e5d8b42af93b8b5649/html5/thumbnails/17.jpg)
Obrigado!
Time MySQL Brasil
@MySQLBR meetup.com/MySQL-BR