Percona XtraBackup 8.0 是Percona XtraBackup新推出了一个针对MySQL8.0的版本,主要是MySQL8.0在Redo 和 数据库字典方面有了新的改进。 XtraBackup 2.4 继续支持MySQL 5.6 和 5.7。
(1)移除了innobackupex命令;(2)由于新的MySQL重做日志和数据字典格式,8.0版本只支持mysql8.0和percona8.0;(3)早于mysql8.0的版本需要使用xtrabackup2.4备份和恢复.
step 1 下载
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/redhat/7/x86_64/percona-xtrabackup-80-8.0.4-1.el7.x86_64.rpm
step 2 安装已下载文件
yum localinstall percona-xtrabackup-80-8.0.4-1.el7.x86_64.rpm
step 3 判断安装是否已安装成功
rpm -qa | grep -i xtrabackup
相关文件查询
rpm -ql percona-xtrabackup-80
xtrabackup安装版本的查询:
xtrabackup --version
本测试查询后的信息如下:
xtrabackup version 8.0.4 based on MySQL server 8.0.13 Linux (x86_64) (revision id: c2c0777)
我们应该特别小心,这个xtrabackup version 运行的基础是MySQL server 8.0.13。如果,MySQL的版本是之前的版本,在恢复阶段会报错:
xtrabackup: Error: cannot open file './xtrabackup_tablespaces'xtrabackup: Error: failed to load tablespaces list.
It is possible that the backup was created by Percona XtraBackup 2.4 or earlier version. Please use the same XtraBackup version to restore.