MySQL is a powerful open-source database. With more and more database driven applications, people have been pushing MySQL to its limits. Here are 101 tips for tuning and optimizing your MySQL install. Some tips are specific to the environment they are installed on, but the concepts are universal. I have divided them up into several categories to help you with getting the most out of MySQL:
MySQL Server Hardware and OS Tuning:
1. Have enough physical memory to load your entire InnoDB file
into memory – InnoDB is much faster when the file can be accessed
in memory rather than from disk.
2. Avoid Swap at all costs …