How to achieve simple MySQL performance tuning through the Pagoda Panel
The following tutorial column of Pagoda will introduce to you how to achieve simple tuning of MySQL performance through the Pagoda panel. I hope it will be helpful to friends in need!
During the operation of PHP MYSQL architecture websites, various performance problems are often encountered, such as MySQL, PHP, CPU, disk IO, cache, etc., among which MySQL is the bottleneck. It is the most common and difficult to solve factor that affects website performance; usually, we use caching software such as redis and memcached to cache content. This is indeed one of the best solutions, but it requires the support of the website program. However, most commonly used website programs do not support or cannot perfectly support these caching software. Today we will talk about how to optimize MySQL performance through MySQL's own configuration adjustments to alleviate the MySQL bottleneck problem.
Preparation:
1. Pagoda Linux panel official version 5.2.0 (released on 2017/09/20) Beta version 5.2.4
2. MySQL 5.x
Usually MySQL tuning is divided into the following parts:
1. MySQL configuration parameter tuning (needs to be adjusted according to the website’s operating conditions)
2. Data table index tuning (effect Obviously, but usually excellent open source programs do not need to be adjusted)
3. SQL statement tuning (this is what programmers or DBAs do)
Today we mainly talk about how to cooperate with Pagoda To use the new functions of the panel to tune MySQL configuration parameters, let’s first look at two pictures:
(Picture 1)
(Picture 2)
If this value is increasing slowly, it is recommended to increase the sort_buffer_size in (Figure 2) appropriately. It is recommended to increase it by 512 each time, but the maximum should not exceed 8192. If this value keeps rising, increasing sort_buffer_size is useless, so give up. This is an option. The blame should be placed on the program developers.
10. Number of table locks
If the server has low CPU overhead and locks tables crazily, it is recommended that you convert all data tables to innodb, and remember to back up before conversion.
11. Optimization plan
This is a recommended optimization plan based on the memory size. It is only recommended to be used for basic reference values. Each configuration item should be adjusted according to the actual situation. .
Note: After saving the parameter configuration, it will not take effect immediately. Remember to restart the MySQL service.
The above is the detailed content of How to achieve simple MySQL performance tuning through the Pagoda Panel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.