MySQL源码下载路径请参见表2。
对于MySQL 8.0.25版本,执行以下命令:
cd /home tar -zxvf mysql-boost-8.0.25.tar.gz cd mysql-8.0.25
对于MySQL 8.0.30版本,执行以下命令:
cd /home tar -zxvf mysql-boost-8.0.30.tar.gz cd mysql-8.0.30
对于MySQL 8.0.35版本,执行以下命令:
cd /home tar -zxvf mysql-boost-8.0.35.tar.gz cd mysql-8.0.35
您也可以通过如下命令下载MySQL源码。
MySQL 8.0.25版本:
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.25.tar.gz --no-check-certificate tar -zxvf mysql-boost-8.0.25.tar.gz
MySQL 8.0.30版本:
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.30.tar.gz --no-check-certificate tar -zxvf mysql-boost-8.0.30.tar.gz
MySQL 8.0.35版本:
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.35.tar.gz --no-check-certificate tar -zxvf mysql-boost-8.0.35.tar.gz
git init git add -A git commit -m "Initial commit"
1
|
yum install git |
1 2 |
git config user.email "123@example.com" git config user.name "123" |
您也可以通过如下命令下载MySQL线程池特性patch。
wget https://gitee.com/kunpengcompute/mysql-server/releases/download/KunpengBoostKit23.0.RC4.ThreadPool/code-threadpool-for-MySQL-8.0.patch --no-check-certificate
1
|
git status
|
1 2 3 4 5 6 7 |
[root@localhost mysql-8.0.25]# git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) code-threadpool-for-MySQL-8.0.patch nothing added to commit but untracked files present (use "git add" to track) |
1 2 |
git apply --check code-threadpool-for-MySQL-8.0.patch git apply --whitespace=nowarn code-threadpool-for-MySQL-8.0.patch |
ll ./plugin/thread_pool/
预期结果: