RHEL 5.7 uses rpm to install XtraBackup, rhelxtrabackup

Source: Internet
Author: User
Tags install perl percona

RHEL 5.7 uses rpm to install XtraBackup, rhelxtrabackup

I encountered some problems when installing Percona Xtrabackup 2.4.6 using RPM on Red Hat Enterprise Linux Server release 5.7 (Tikanga.

 

[Root @ DB-Server tmp] # yum-y install perl-devel libaio-devel perl-Time-HiRes perl-DBD-MySQL

 

 

 

Conflict with file error when installing related dependent components. As shown above, if Percona Xtrabackup 2.4.6 is installed, the following error occurs:

 

[root@DB-Server tmp]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm 
warning: percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a
error: Failed dependencies:
        libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el5.x86_64
        perl(DBD::mysql) is needed by percona-xtrabackup-24-2.4.6-2.el5.x86_64

 

As shown above, since the components are missing, installing libev. x86_64, as shown below, the local yum source fails to install libev. so.4, And the libev-4.15-1.el5.rf.x86_64.rpm can only be downloaded from the web site for the http://rpmfind.net/linux/rpm2html/search.php

 

[root@DB-Server tmp]# yum -y install libev.x86_64
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package libev.x86_64 available.
Nothing to do
 
 
[root@DB-Server tmp]# rpm -ivh libev-4.15-1.el5.rf.x86_64.rpm 
warning: libev-4.15-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%]
[root@DB-Server tmp]# yum list | grep "perl-DBD-MySQL"
perl-DBD-MySQL.x86_64                      3.0007-2.el5                media   
[root@DB-Server tmp]# yum install perl-DBD-MySQL

 

When installing perl-DBD-MySQL, you will encounter many errors similar to the following:

 

 

File/usr/bin/msql2mysql from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

File/usr/bin/mysql from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

File/usr/bin/mysql_find_rows from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

File/usr/bin/mysql_waitpid from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

File/usr/bin/mysqlaccess from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

 

 

This error is reported because the MySQL-shared-compat component is not installed, and after the MySQL-shared-compat-advanced-5.6.20-1.rhel5.x86_64.rpm is installed, the conflict with file error will not be encountered using yum install perl-DBD-MySQL

 

[root@DB-Server tmp]# rpm -qa | grep -i mysql
MySQL-server-advanced-5.6.20-1.rhel5
MySQL-client-advanced-5.6.20-1.rhel5
[root@DB-Server tmp]# rpm -ivh MySQL-shared-compat-advanced-5.6.20-1.rhel5.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:MySQL-shared-compat-adv########################################### [100%]
[root@DB-Server tmp]# yum install perl-DBD-MySQL
[root@DB-Server tmp]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm 
warning: percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing...                ########################################### [100%]
   1:percona-xtrabackup-24  ########################################### [100%]
[root@DB-Server tmp]# 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.