Mysql server optimization ideas

Server optimization ideas, first locate the problem

  1. Observation of server status, fault or whether cyclical fluctuations
  2. Access is normally provided by the peak or cache Ben collapse due to: increase the buffer, or cache expiration time set at night or timing out
  3. Turn on slow query, get problematic sql, and long long wait statement to execute when the statement execution plan analysis
  4. If the executive: Table 1 Structure; 2 index is not optimization; 3 no statement optimization.
  5. If the long wait: 4 Tuning server parameters, such as the number of threads buffers and the like.
  6. If the problem is not resolved, it has to observe whether the query speed bottleneck benchmark. The machine has been added to the bottleneck, not, repeat the above steps.

Guess you like

Origin blog.csdn.net/licheng989/article/details/87873992