使用XtraBackup创建mysql slave5

2022-05-04 22:34:13 浏览数 (1)

可知 perl-DBD-MySQL 已经安装了,和报错不符合

解决办法:

重装 perl-DBD-MySQL

代码语言:javascript复制
[root@master-qa ~]# yum list all | grep  perl-DBD-MySQL 
perl-DBD-MySQL.x86_64                      4.013-3.el6                   @base  
[root@master-qa ~]# yum reinstall  perl-DBD-MySQL.x86_64  
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: mirrors.pubyun.com
 * updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be reinstalled
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package Percona-Server-shared-51.x86_64 0:5.1.73-rel14.12.624.rhel6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                             Arch              Version                                Repository                         Size
======================================================================================================================================
Reinstalling:
 perl-DBD-MySQL                      x86_64            4.013-3.el6                            base                              134 k
Installing for dependencies:
 Percona-Server-shared-51            x86_64            5.1.73-rel14.12.624.rhel6              percona-release-x86_64            2.1 M

Transaction Summary
======================================================================================================================================
Install       1 Package(s)
Reinstall     1 Package(s)

Total download size: 2.3 M
Installed size: 6.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): Percona-Server-shared-51-5.1.73-rel14.12.6 (1%)  1% [-                                       ]  0.0 B/s |  43 kB     --:-- ETA 
(1/2): Percona-Server-shared-51-5.1.73-rel14.12.6 (91%) 96% [=====================================- ] 177 kB/s | 2.1 MB     00:00 ETA 
(1/2): Percona-Server-shared-51-5.1.73-rel14.12.6 (93%) 99% [======================================-] 174 kB/s | 2.1 MB     00:00 ETA 

(1/2): Percona-Server-shared-51-5.1.73-rel14.12.624.rhel6.x86_64.rpm                                           | 2.1 MB     00:10     

(2/2): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm                                                                   | 134 kB     00:00     
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 208 kB/s | 2.3 MB     00:11     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

  Installing : Percona-Server-shared-51-5.1.73-rel14.12.624.rhel6.x86_ [####################################################### ] 1/2
  Installing : Percona-Server-shared-51-5.1.73-rel14.12.624.rhel6.x86_64                                                          1/2 
  
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 [############################################################################# ] 2/2
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                  2/2 

  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                  1/2 

  Verifying  : Percona-Server-shared-51-5.1.73-rel14.12.624.rhel6.x86_64                                                          2/2 

Installed:
  perl-DBD-MySQL.x86_64 0:4.013-3.el6                                                                                                 

Dependency Installed:
  Percona-Server-shared-51.x86_64 0:5.1.73-rel14.12.624.rhel6                                                                         

Complete!
[root@master-qa ~]# 

0 人点赞