Installation Description
- Download and decompress the MySQL 8.0.20 source package.
1 2 3 4
cd /home wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.20.tar.gz --no-check-certificate tar -zxvf mysql-boost-8.0.20.tar.gz cd mysql-8.0.20
- Convert the project into a Git repository.
1 2 3
git init git add -A git commit -m "init"
- Generally, Git is provided by the system. Configure the Yum source by following instructions in "Configuring the Yum Source" in MySQL Porting Guide and then install Git.
1yum install git
- If the Git submission user information is not configured, configure the user email and user name before running the git commit command.
1 2
git config user.email "123@example.com" git config user.name "123"
- Generally, Git is provided by the system. Configure the Yum source by following instructions in "Configuring the Yum Source" in MySQL Porting Guide and then install Git.
- Download the patch file.
1wget https://gitee.com/kunpengcompute/mysql-server/releases/download/KunpengBoostKit21.0.0-threadpool8/0001-THREAD_POOL_8.patch --no-check-certificate
- Check whether the content is modified.
1git statusThe following shows that a 0001-THREAD_POOL_8.patch file is added.1 2 3 4 5 6
# On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # 0001-THREAD_POOL_8.patch nothing added to commit but untracked files present (use "git add" to track)
- Check whether the patch file conflicts with the MySQL source code.
1git apply --check 0001-THREAD_POOL_8.patch

If no error is reported, the patch can be applied.
- Apply the patch file.
1git apply --whitespace=nowarn 0001-THREAD_POOL_8.patch
The following information is displayed. Warning information can be ignored. If no error information is displayed, the patch is successfully installed.

After the patch is applied, you can create, compile, and install MySQL. For details, see MySQL Porting Guide.
After the patch is successfully installed, check the new information_schema table in the thread pool to ensure that the patch has taken effect. For details, see New information_schema Tables.
Parent topic: MySQL 8.0.20 Thread Pool Feature Guide