欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.

程序员文章站 2024-03-13 09:56:57
...
执行 pt-table-checksum 报错
01-14T09:48:20 install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 25) line 3.

经过模拟,原因可能是卸载了mariadb-libs

rpm -qa |grep mariadb
mariadb-libs-5.5.44-2.el7.x86_64
rpm -e mariadb-libs-5.5.44-2.el7.x86_64 --nodeps

[[email protected] ~]# yum -y install mariadb-libs-5.5.44-2.el7.x86_64
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel-media                                                                                                             | 4.1 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.44-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                            Arch                         Version                               Repository                        Size
==============================================================================================================================================
Installing:
 mariadb-libs                       x86_64                       1:5.5.44-2.el7                        rhel-media                       754 k

Transaction Summary
==============================================================================================================================================
Install  1 Package

Total download size: 754 k
Installed size: 4.4 M
Downloading packages:
mariadb-libs-5.5.44-2.el7.x86_64.rpm                                                                                   | 754 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 5 pre-existing rpmdb problem(s), 'yum check' output follows:
libkkc-0.3.1-8.el7.x86_64 has missing requires of libmarisa.so.0()(64bit)
perl-DBD-MySQL-4.023-5.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
perl-DBD-MySQL-4.023-5.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
  Installing : 1:mariadb-libs-5.5.44-2.el7.x86_64                                                                                         1/1 
  Verifying  : 1:mariadb-libs-5.5.44-2.el7.x86_64                                                                                         1/1 

Installed:
  mariadb-libs.x86_64 1:5.5.44-2.el7                                                                                                          

Complete!

故障解决

相关标签: MySQL