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!
故障解决
上一篇: k8s iptables 学习笔记
下一篇: java编码,解码。乱码原因及解决办法
推荐阅读
-
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
-
MySQL MHA /usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln301] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted
-
MySQL MHA /usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln301] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted
-
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted