Chapter 31. Optimizing and Tuning MySQL

In this chapter, you learn the following:

Basic hardware and software optimization tips for your MySQL server

Key startup parameters for your MySQL server

How to use the OPTIMIZE TABLE command

How to use the EXPLAIN command

How to use the FLUSH command to clean up tables, caches, and log files

How to use SHOW commands to retrieve information about databases, tables, and indexes

How to use SHOW commands to find system status information

Proper care and feeding of your MySQL server will keep it running happily and without incident. The optimization of your system consists of proper hardware maintenance and software tuning.


For additional methods of maintaining and administering your ...

Get Sams Teach Yourself PHP, MySQL® and Apache All in One, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.