首页 > 数据库技术 > 详细

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

时间:2020-08-25 11:50:52      阅读:355      评论:0      收藏:0      [点我收藏+]

环境:
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

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

原文:https://www.cnblogs.com/ccku/p/13558547.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!