1 配置perlperl -MCPAN -e shellcpan[1]>install Time:HiRescpan[1]>install File::Tempcpan[1]>install Data::Dumpericpan[1]>install DBIcpan[1]>install Getopt::Longcpan[1]>install Storablecpan[1]>install Term::ReadKey2 安装工具工具下载链接: https://pan.baidu.com/s/1hs5XXY0 密码: 4uak使用root运行:tar xvfz mysqlsla-2.03.tar.gzca mysqlsla*perl Makefile.PLmakemake install3 安装完成后测试which mysqlsla/usr/local/bin/mysqlslamysqlsla -lt slow slow_query.log >ycr.output
转载于:https://www.cnblogs.com/Clark-cloud-database/p/7813346.html