1 配置perl
perl -MCPAN -e shell
cpan[1]>install Time:HiRes
cpan[1 ]>install File::Temp
cpan[1 ]>install Data::Dumper
i cpan[1 ]> install DBI
cpan[1 ]> install Getopt::Long
cpan[1 ]>install Storable
cpan[1 ]> install Term::ReadKey
2 安装工具
工具下载链接: https://pan.baidu.com/s/1hs5XXY0 密码: 4uak
使用root运行:
tar xvfz mysqlsla-2.03.tar.gz
ca mysqlsla*
perl Makefile.PL
make
make install
3 安装完成后测试
which mysqlsla
/usr/local/bin/mysqlsla
mysqlsla -lt slow slow_query.log >ycr.output
perl -MCPAN -e shell
cpan[1]>install Time:HiRes
cpan[1 ]>install File::Temp
cpan[1 ]>install Data::Dumper
i cpan[1 ]> install DBI
cpan[1 ]> install Getopt::Long
cpan[1 ]>install Storable
cpan[1 ]> install Term::ReadKey
2 安装工具
工具下载链接: https://pan.baidu.com/s/1hs5XXY0 密码: 4uak
使用root运行:
tar xvfz mysqlsla-2.03.tar.gz
ca mysqlsla*
perl Makefile.PL
make
make install
3 安装完成后测试
which mysqlsla
/usr/local/bin/mysqlsla
mysqlsla -lt slow slow_query.log >ycr.output
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29135257/viewspace-2146264/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29135257/viewspace-2146264/