课程介绍:
众多已经学习过MySQL 8.0 OCP认证专家的课程的同学们对 MySQL 8.0 的安装部署、体系结构、配置监控、用户管理、主从复制、系统运维、MGR等基础操作和动手实验有了一定的学习基础.很多学员反馈希望更进一步提升技术能力、解决工作中碰到的性能问题。针对MySQL的数据库性能优化部分,云贝资深数据库老师们推出新的进阶课程《MySQL性能优化》,以MySQL原厂课件作为蓝本,深入背后底层逻辑,理论与实战结合老师的一线大厂的丰富经验,安排预计4天的技术进阶课。
本课程不管是初来乍到的新同学还是面面俱到的老学员,欢迎大家来进修学习,共同交流、一起进步。
适合人群:
MySQL OCP / DBA
课程学时:
24课时
课程特点:
Oracle原厂最新英文标准教材,理论+实验相结合授课
课程目标:
完成本课程后,您应该能够:理解性能调优概念,理解影响性能的因素,
使用一系列性能调优工具,配置和使用性能方案,调整MySQL服务器实例,设计最佳性能方案,
了解MySQL如何优化查询,识别和修复缓慢的查询,诊断和解决常见的性能问题,识别和修复复制延迟。
讲师介绍:
课程大纲:
第一章:Introduction
1.1.Introduction
1.2.Practice 1-1: Course Environment Overvie
第二章:Performance Tuning Concepts
2.1.Overview
2.2.Terminology
2.3.Benchmarking
2.4.Troubleshooting performance issues
2.5.Tuning steps
2.6.Deploying and maintaining MySQL
2.7.Practice 2-1: Quiz–Performance Tuning
第三章:Performance Tuning Tools
3.1.MySQL monitoring tools
3.2.Oracle DB monitoring tools
3.3.Community monitoring tools
3.4.Linux tools
3.5.Benchmarking tools
3.6.Practice 3-1: Using MySQL Command-Line Monitoring Tools
3.7.Practice 3-2: Using MySQL Enterprise Monitor
3.8.Practice 3-3: Using Benchmark Tools
3.9.Practice 3-4: Using Linux System Monitoring Tools
第四章:Performance Schema
4.1.What is Performance Schema
4.2.Schema overview
4.3.Configuration
4.4.The Instance and Connection Tables
4.5.Querying event data
4.6.The sys schema
4.7.MySQL Workbench performance tools
4.8.Practice 4-1: Examining the Performance Schema Configuration
4.9.Practice 4-2: Querying the Performance Schema
4.10.Practice 4-3: Using sys to Work with the Performance Schema
4.11.Practice 4-4: Using MySQL Workbench for Performance Schema Configuration, Monitoring, and Reporting
第五章:General_Server_Tuning
5.1.How MySQL uses memory
5.2.Calculating maximum MySQL memory usage
5.3.Managing connections
5.4.Tuning threads
5.5.Practice 5-1: Calculating Total Thread Memory Usage
5.6.Practice 5-2: Managing the Number of Client Connections
5.7.Practice 5-3: Investigating the Effects of Multiple Simultaneous Connections
5.8.Practice 5-4: Investigating the Effects of Thread Caching
第六章:Tables_Files_Logs
6.1.Sizing the table cache
6.2.Managing tables and files
6.3.Tuning the binary logs
6.4.Practice 6-1: Sizing the Table Cache
6.5.Practice 6-2: Tuning Open Files Limit
6.6.Practice 6-3: Sizing the Binary Log Cache
6.7.Practice 6-4: Identifying I/O Hotspots with MySQL Workbench
第七章:Tuning_InnoDB
7.1.What is InnoDB
7.2.How does InnoDB work
7.3.Tuning InnoDB buffer pool and log files
7.4.Measuring InnoDB performance
7.5.Practice 7-1: Investigating the Effects of Log Files on Transactions
7.6.Practice 7-2: Using SHOW ENGINE INNODB STATUS
7.7.Practice 7-3: Monitoring InnoDB Metrics in the Information Schema
7.8.Practice 7-4: Evaluating InnoDB Buffer Pool Size
第八章:Optimizing_Your_Schema
8.1.Schema design considerations
8.2.Indexes
8.3.InnoDB table compression
8.4.Partitioning tables
8.5.Practice 8-1: Comparing the Effects of Table Normalization on Query Performance
8.6.Practice 8-2: Choosing the Correct Data Type
8.7.Practice 8-3: Compressing Tables
8.8.Practice 8-4: Partitioning
第九章:Monitoring_Queries
9.1.Identifying candidate queries for optimization
9.2.Server logs
9.3.Statement status variables
9.4.Performance Schema and sys
9.5.Graphical tools
9.6.Practice 9-1: Monitoring Statements
9.7.Practice 9-2: Using the Slow Query Log
9.8.Practice 9-3: Identifying Slow Queries with MySQL Enterprise Monitor Query Analyzer
9.9.Practice 9-4: Identifying Slow Queries with sys Views
9.10.Practice 9-5: Using MySQL Workbench Query Statistics
第十章:Optimizing_Queries
10.1.How the optimizer works
10.2.Understanding the query plan
10.3.Optimizing queries
10.4.Practice 10-1: Understanding the Query Execution Plan with the EXPLAIN Statement
10.5.Practice 10-2: Improving the Performance of a Query
10.6.Practice 10-3: Tracing the Optimizer
第十一章:Optimizing_Locking
11.1.How MySQL locking works
11.2.InnoDB lock types
11.3.Metadata locks
11.4.Viewing lock information with SQL statements
11.5.Investigating locks by querying system databases
11.6.Practice 11-1: Troubleshooting Blocked Queries
11.7.Practice 11-2: Investigating Metadata Locks
第十二章:Tuning_Replication
12.1.Replication overview
12.2.Understanding replication lag
12.3.Diagnosing replication lag
12.4.Resolving replication lag
12.5.Practice 12-1: Diagnosing Replication Lag by Using Binary Log File Name and Position
12.6.Practice 12-2: Diagnosing Replication Lag by Using GTID Sets
第十三章:Conclusion
13.1.Conclusion