首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

install_driver(mysql) failed

安装好了mysql监控神器innotop,正得意,innotoop不可用,其错误提示为install_driver(mysql) failed: Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object  file:...经查原有又是DBD惹的祸,这个问题已经发生过好几次了。 1、故障现象 [root@dbsrv1 ~]# cat /etc/issue CentOS release 5.11 (Final) Kernel \r on an \m [root@dbsrv1 ~]# innotop localhost PROCESSLIST_NO_IS: install_driver(mysql) failed: Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230. at (eval 504) line 3 Compilation failed in require at (eval 504) line 3. Perhaps a required shared library or dll isn't installed where expected  at /usr/bin/innotop line 7601 2、安装perl-DBD-MySQL [root@dbsrv1 ~]# yum install perl-DBD-MySQL Loaded plugins: fastestmirror, security Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Loading mirror speeds from cached hostfile  * base: mirrors.163.com  * epel: mirrors.ustc.edu.cn  * extras: mirrors.skyshe.cn  * updates: mirrors.pubyun.com Setting up Install Process Package perl-DBD-MySQL-3.0007-2.el5.x86_64 already installed and latest version Nothing to do ###上面描述已经perl-DBD-MySQL已经安装,且为最新的版本 [root@dbsrv1 yum.repos.d]# rpm -qa |grep -i dbd perl-DBD-MySQL-3.0007-2.el5 ###首先先卸载perl-DBD-MySQL,然后再次使用yum安装 [root@dbsrv1 yum.repos.d]# rpm -e --nodeps perl-DBD-MySQL-3.0007-2.el5 [root@dbsrv1 yum.repos.d]# rpm -qa |grep -i dbd [root@dbsrv1 yum.repos.d]# yum install perl-DBD-MySQL Loaded plugins: fastestmirror, security Repository base is listed more than once in the configuration Reposit

03
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Temporary failure in name resolution

    最近在使用yum方式安装perl-DBD-MySQL时碰到了Temporary failure in name resolution,Trying other mirror。即命名解析失败,尝试使用其它镜像。由于本机为最近安装的新服务器,下面是这个问题的现象描述及处理过程。 1、故障现象 ###当前环境 [root@GZDB ~]# cat /etc/issue CentOS release 5.11 (Final) Kernel \r on an \m [root@GZDB ~]# yum install perl-DBD-MySQL               .............. http://mirrors.pubyun.com/centos/5.11/os/x86_64/CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm:     [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.sina.cn/centos/5.11/os/x86_64/CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm:     [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. Error Downloading Packages:   mysql-5.0.95-5.el5_9.x86_64: failure:       CentOS/mysql-5.0.95-5.el5_9.x86_64.rpm from base: [Errno 256] No more mirrors to try.   perl-DBI-1.52-2.el5.x86_64: failure:       CentOS/perl-DBI-1.52-2.el5.x86_64.rpm from base: [Errno 256] No more mirrors to try.   perl-DBD-MySQL-3.0007-2.el5.x86_64: failure:       CentOS/perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm from base: [Errno 256] No more mirrors to try. ###尝试ping百度,结果提示未知的主机 [root@GZDB yum.repos.d]# ping www.baidu.com ping: unknown host www.baidu.com [root@GZDB yum.repos.d]# ping www.baidu.com ping: unknown host www.baidu.com 2、故障解决 ###结合上面的错误提示及无法ping通百度,应该是dns解析未配置 [root@GZDB yum.repos.d]# more /etc/resolv.conf  ###未配置dns解析 ###添加dns解析 [root@GZDB yum.repos.d]# echo " > nameserver 121.14.37.62 > nameserver 203.196.0.6">>/etc/resolv.conf [root@GZDB yum.repos.d]# ping www.baidu.com PING www.a.shifen.com (119.75.217.109) 56(84) bytes of data. 64 bytes from 119.75.217.109: icmp_seq=1 ttl=52 time=38.7 ms 64 bytes from 119.75.217.109: icmp_seq=2 ttl=52 time=38.8 ms 64 bytes from 119.75.217.109: icmp_seq=3 ttl=52 time=38.7 ms --- www.a.shifen.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 6078ms rtt min/avg/max/mdev = 38.711/38.742/38.801/0.165 ms ###再次yum perl-DBD-MySQL时成功 [root@GZDB yum.repos.d]# yum install perl-DBD-MyS

    02

    安装MHA中清理Relay log报错

    [root@MHA3 ~]#  /usr/bin/purge_relay_logs --user=root --password=123456 -disable_relay_log_purge --port=3306 --workdir=/opt/mysql/data/ 2014-08-27 09:19:30: purge_relay_logs script started. install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 6) line 3. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.  at /usr/bin/purge_relay_logs line 162

    01

    Install Jumpserver30

    Dependencies Resolved ========================================================================================= Package Arch Version Repository Size ========================================================================================= Installing: mariadb x86_64 1:5.5.56-2.el7 base 8.7 M mariadb-server x86_64 1:5.5.56-2.el7 base 11 M Installing for dependencies: perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBD-MySQL x86_64 4.023-6.el7 base 140 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k Transaction Summary ========================================================================================= Install2 Packages (+7 Dependent packages) Total download size: 21 M Installed size: 110 M Downloading packages: (1/9): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00 (2/9): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm | 140 kB 00:00:00 (3/9): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00 (4/9): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00 (5/9): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00 (6/9): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:01 (7/9): mariadb-server-5.5.56-2.el7.x86_64.rpm | 11 MB 00:00:08 (8/9): mariadb-5.5.56-2.el7.x86_64.rpm

    02
    领券