MySQL Performance & Tuning

Course Code: MYSDBAPT

Duration: 2 days

 
 
 
 

MySQL Performance & Tuning Course Overview

This MySQL Performance & Tuning course is designed for Database Administrators, Application Developers and Technical Consultants who need to monitor and tune the performance of MySQL servers and databases.

The course provides practical experience in monitoring and tuning MySQL servers and databases.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Versions supported 8.

Like most database software, MySQL can benefit from performance tuning. By adjusting certain settings and configurations, the speed and responsiveness of your databases can be improved. This can lead to improved overall performance of your applications and a better user experience. Optimized database performance also can help reduce hosting costs by getting the most out of the hardware that is available within the existing infrastructure.

In this course, we will cover some of the most important aspects of tuning MySQL for high performance.

Course Objectives

To provide the skills necessary to monitor and tune MySQL database performance.

Who will the Course Benefit?

Anyone who needs to monitor and tune the performance of MySQL databases.

Course Notes

This MySQL Performance & Tuning course does not cover clustering (other than at an overview level) or replication.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Developing a monitoring and tuning plan
  • Hardware optimization
  • Operating system optimization
  • Using monitoring and diagnostic tools
  • Using the Information Schema and Show commands to collect data for tuning
  • Evaluating the Performance tuning tools that are available
  • Using load generation, stress testing and benchmarking tools
  • Using server configuration and status variables
  • Understanding the output from the Explain command
  • Optimizing queries
  • Making efficient use of indexes to maximize performance
  • Monitoring and sizing memory caches
  • Tuning the InnoDB storage engine
  • Comparing and tuning dump and load performance
  • Evaluating the use of partitioning to improve performance

MySQL Performance & Tuning Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION TO PERFORMANCE TUNING

  • Tuning Overview
  • Resolving Performance Issues
  • Recommended Approach to Tuning
  • Items to Evaluate
  • Where to look for performance issues
  • Develop a monitoring and tuning plan
  • Building a New Database for Performance
  • Tuning an Existing Database for performance
  • Set Suitable performance goals

Session 2: MYSQL PERFORMANCE TUNING TOOLS

  • Tuning Overview
  • Hardware optimization
  • Increase RAM and use faster RAM
  • Use more CPU cores
  • Use a clustered database
  • Optimize the operating system
  • Use indexes to improve performance
  • Optimize queries
  • Optimize tables
  • Assign suitable memory allocations
  • Set values for system variables that affect performance
  • Use benchmarking tool

Session 3: STATEMENT TUNING

  • Overview of Statement Tuning
  • Identifying and improve Problem Queries
  • The Optimizer
  • Understand the output from the Explain command
  • Monitor queries using the Information Schema Processlist table
  • Optimization strategies
  • Optimizations for derived tables
  • Filesort with small LIMIT optimization
  • Limit rows examined
  • Query limits and timeouts
  • Abort statements that exceed a specific time to execute

Session 4: INDEXES

  • An overview of MariaDB indexes
  • Types of MySQL indexes
  • Make efficient usage of indexes
  • Assess the size of an Index
  • Resolve queries without accessing some tables referred to in the query
  • Force query plans using index hints
  • Find rows in a table using named indexes
  • Ignore indexes using an index hint
  • How indexes impact table joins
  • InnoDB Cached Indexes Information

MySQL Performance & Tuning Training Course

Session 5: SERVER CONFIGURATION AND MONITORING

  • Set suitable values for server configuration variables
  • Use server status variables to monitor performance
  • Use table caching
  • Store key distributions for a table with the ANALYZE TABLE command
  • Reclaim unused space and defragment data with the OPTIMIZE TABLE command
  • Use multi-threading
  • Solve connection issues

Session 6: THE INNODB ENGINE

  • Transactions
  • Crash recovery with the innodb engine
  • Effects of innodb locking on performance
  • Monitoring InnoDB Locks in MySQL
  • MySQL Disable Deadlock Detection
  • Monitor the performance of the InnoDB engine
  • Set and monitor caches and buffers
  • Configuring data files for performance
  • Configuring the log files for performance

Session 7: OVERVIEW OF CLUSTERING FOR PERFORMANCE

  • The Performance Advantages of Clustering
  • Performance Issues and Clustering
  • The NDB Cluster
  • The Galera Cluster
  • The Percona XtraDB Cluster
  • MySQL InnoDB Cluster
  • The Federated Engine

Session 8: OPTIMIZING THE PERFORMANCE OF DUMPING AND LOADING DATA

  • SQL statements versus delimited data
  • Parameters affecting dump performance
  • Parameters affecting load performance

Session 9: PARTITIONING TABLES FOR PERFORMANCE

  • The concept of partitioned tables
  • How partitioning can improve performance
  • Range partitioning
  • Hash partitioning
  • Key partitioning
  • List partitioning
  • Composite partitioning or subpartitioning
  • Partition Pruning
  • Adding, dropping and coalescing partitions
  • Convert a non-partitioned table to a partitioned table
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Requirements

Delegates must have a working knowledge of MySQL Database Administration.

This course is run on a Linux operating system, a basic knowledge of Linux/UNIX is recommended but is not essential.

Pre-Requisite Courses

Further Learning

Course Reviews

Excellent course, very relevant and useful content with lots of practical applications. I took the course remotely, which saved commuting, and had no issues with video conferencing. Would recommend to anyone who works with MySQL either as a DBA or developer and needs to find performance improvements or optimise their setup. Excellent teacher, and presented the material very well.

David - IT Director - Retail / Hire

Really clear and complete.

Mario - developer - IT

The instructor was very professional and patient.

Mark - PROJECT MANAGER - IT

Well paced course. Trainer was very knowledgeable as well as friendly. He was able to tailor the course to my requirements - which made a huge difference.

Dan - Systems Manager - IT

Alan was an excellent trainer with definitely solid experience and explained it on a pleasant pace. Thanks very much indeed!

Charles - Senior Web Developer

Alan is extremely knowledgeable in the subject matter, and was quick to point out differences in the versions since the course notes were originally written. Very friendly and professional.

Paul - Network Systems Engineer and DBA

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 2 days

Price: £1,100.00 exc. VAT 


Start Date Options Spaces  
13 Feb 2025
StayAhead Virtual Courses available 
Spaces Book Now 
24 Apr 2025
StayAhead Virtual Courses available 
Spaces Book Now 
26 Jun 2025
StayAhead Virtual Courses available 
Spaces Book Now 
25 Sep 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy