如何为XAMPP安装Percona的pt-archiver?

时间:2017-02-20 21:45:06

标签: mysql xampp percona

我需要每年归档我的MySQL数据库,然后找到了Percona Toolkit。但我想首先在XAMPP上尝试,而不是在实际的服务器上。我使用了XAMPP控制面板中的Shell。

首先,我使用以下命令安装了pt-archiver:

wget percona.com/get/pt-archiver --no-check-certificate  

安装成功。我尝试了第一次干运行:

pt-archiver --source h=127.0.0.1,D=db_ilb,t=erstbegegnung --file 'C:\xampp\Archive\%Y-%m-%d-%D.%t' --where "1=1" --limit 1000 --commit-each --dry-run 

它引发了一个错误:

install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 14) line 3.

 at ./pt-archiver line 2499.  

尝试通过CSPAN安装DBD :: mysql后,又抛出了另一个错误:

Warning: No success on command[C:\xampp\perl\bin\perl.exe Makefile.PL]
CPAN: YAML::XS loaded ok (v0.39)
  MICHIELB/DBD-mysql-4.041.tar.gz
  C:\xampp\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Stopping: 'install' failed for 'DBD::mysql'.
Could not read metadata file. Falling back to other methods to determine prerequisites  

我不知道下一步该做什么......如果您有任何其他存档建议,请告诉我们:)

0 个答案:

没有答案