yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
percona-release setup ps57
* Disabling all Percona Repositories
* Enabling the Percona Server 5.7 repository
* Enabling the Percona XtraBackup 2.4 repository
<*> All done!
[root@localhost mysql]# yum list | grep 5.7.4
输出如下所示:
Percona-Server-57-debuginfo.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-client-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-devel-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-rocksdb-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-server-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-shared-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-shared-compat-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-test-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
Percona-Server-tokudb-57.x86_64 5.7.41-44.1.el7 ps-57-release-x86_64
yum install Percona-Server-server-57
Percona Server for MySQL 5.7附带TokuDB存储引擎。可以在TokuDB安装指南中找到有关如何安装和启用TokuDB存储的更多信息。https://docs.percona.com/percona-server/5.7/installation/
或者参考我的安装文档https://blog.csdn.net/xiaoma19961101/article/details/129414816
$ wget https://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-5.7.31-34/binary/redhat/7/x86_64/Percona-Server-5.7.31-34-r2e68637-el7-x86_64-bundle.tar
tar xvf Percona-Server-5.7.31-34-r2e68637-el7-x86_64-bundle.tar
rpm -ivh Percona-Server-server-57-5.7.31-34.1.el7.x86_64.rpm \
Percona-Server-client-57-5.7.31-34.1.el7.x86_64.rpm \
Percona-Server-shared-57-5.7.31-34.1.el7.x86_64.rpm
或者安装所有
rpm -ivh *.rpm
Files | Location |
---|---|
mysqld server | /usr/bin |
Configuration | /etc/my.cnf |
Data directory | /var/lib/mysql |
Logs | /var/log/mysqld.log |
service mysql start
service mysql stop
service mysql restart
yum remove Percona-Server*
service mysql stop
删除相关数据
rm -rf /var/lib/mysql
rm -f /etc/my.cnf
yum module disable mysql