[[email protected] ~]# /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
解决以上错误 yum -y install perl-DBD-MySQL ncftp 就能解决