《Mysql实例XtraBackup备份出现"Can't locate Digest/MD5.pm in @INC"》要点:
本文介绍了Mysql实例XtraBackup备份出现"Can't locate Digest/MD5.pm in @INC",希望对您有用。如果有疑问,可以联系我们。
- 170222 10:57:29 innobackupex: Starting the backup operation
- IMPORTANT: Please check that the backup run completes successfully.
- At the end of a successful backup run innobackupex
- prints "completed OK!".
- Can't locate Digest/MD5.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 - line 693.
- BEGIN failed--compilation aborted at - line 693.
- 170222 10:57:29 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: (null)
- Using server version 5.6.20-enterprise-commercial-advanced-log
- /usr/bin/innobackupex version 2.4.5 based on MySQL server 5.7.13 Linux (x86_64) (revision id: e41c0be)
- xtrabackup: uses posix_fadvise().
- xtrabackup: cd to /var/lib/mysql/
- xtrabackup: open files limit requested 0, set to 1024
- xtrabackup: using the following InnoDB configuration:
- xtrabackup: innodb_data_home_dir = .
- xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
- xtrabackup: innodb_log_group_home_dir = ./
- xtrabackup: innodb_log_files_in_group = 2
- xtrabackup: innodb_log_file_size = 50331648
MYSQL数据库出现这个错误是因为安装Xtrabackup 2.4.5时,没有安装 perl-Digest-MD5组件.Percona官方资料没有最新的关于Percona XtraBackup 2.4的文档,只有Percona XtraBackup 2.2 Documentation, Release 2.2.13 .这个文档并并没有要求安装组件.而我只安装了下面一些组件.
- [root@DB-Server ~]# yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr \
- bison libtool ncurses5-devel
- [root@DB-Server ~]# yum -y install perl perl-devel perl-Time-HiRes perl-DBD-MySQL
MYSQL数据库安装了perl-Digest-MD5后,问题即可解决.
- [root@DB-Server ~]# yum -y install perl-Digest-MD5
MYSQL数据库
转载请注明本页网址:
http://www.vephp.com/jiaocheng/5766.html