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

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

程序员文章站 2022-03-12 16:54:21
...

percona-toolkit 执行时报错:

install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 22) line 3.

at /usr/bin/pt-archiver line 246

查看是否缺失:ldd /usr/lib64/perl5/auto/DBD/mysql/mysql.so

$ldd /usr/lib64/perl5/auto/DBD/mysql/mysql.so
	linux-vdso.so.1 =>  (0x00007ffc06d72000)
	libmysqlclient.so.16 => not found  $<<<缺失
	libz.so.1 => /lib64/libz.so.1 (0x00007fdc57b65000)
	libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fdc5792e000)
	libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fdc57715000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fdc57491000)
	libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fdc57225000)
	libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fdc56e40000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fdc56aac000)
	libfreebl3.so => /lib64/libfreebl3.so (0x00007fdc568a9000)
	libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fdc56665000)
	libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fdc5637e000)
	libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fdc5617a000)
	libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fdc55f4e000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fdc55d4a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdc57f9b000)
	libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fdc55b3f000)
	libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fdc5593c000)
	libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fdc55722000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fdc55505000)
	libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fdc552e6000)

查看是否安装 mysql 即可。。。

其他原因,参考: 报错install_driver(mysql) failed: Attempt to reload DBD/mysql.pm

相关标签: 杂记