环境:
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
|
请发表评论