一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

mysqlhotcopy报错"Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right."

环境:
CentOS6.0 64位
MySQL5.5.48

问题:

[root@lfs mysql]# mysqlhotcopy --flushlog -u='root' -p='123456' --regexp=blogdb /data/mysql/
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 12) 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/local/bin/mysqlhotcopy line 197

原因:
系统没有安装DBD组件

解决办法:
yum install perl-DBD-MySQL -y

posted @ 2020-08-25 11:10  ccku  阅读(928)  评论(0编辑  收藏  举报