Configuring MySQL


Background

The main system configuration file is /etc/my.cnf.

MySQL is extremely versatile and can be configured in many ways. Find the optimum configuration for your particular environment is an interative process. Starting with reasonable assumptions can speed up this process.

This exercise has five real life examples of my.cnf file. They are all different because they are used in different situations.

Objectives

Steps

  1. Examine the different my.cnf scripts;

  2. Examine Configuration A
  3. Examine Configuration B
  4. Examine Configuration C

  5. Examine Configuration D
  6. Examine Configuration E
  7. Review the findings
  8. Congratulations! You have successfully examined my.cnf configuration scripts.