MySQL optimized slow query log analysis tool (pt-query-digest)

table of Contents

Slow check log analysis tool

installation

pt-query-digest command


 

Slow check log analysis tool

 

Earlier we talked about slow query, mysql built a slow query tool mysqldumpslow. But relatively speaking, this tool is not as powerful and easy to use as pt-query-digest

 

 

installation

 

First install wget

yum install wget

 Then digest

wget  https://www.percona.com/downloads/percona-toolkit/2.2.16/RPM/percona-toolkit-2.2.16-1.noarch.rpm && yum localinstall -y percona-toolkit-2.2.16-1.noarch.rpm

Check if the installation is successful

pt-summary

The following figure represents the successful installation

 

 

pt-query-digest command

 

This tool provides a wealth of commands to detect and optimize mysql. There are more commands and I use less. I will not summarize them here. If you have a friend, you can send a private message ~ 

Published 568 original articles · Like 180 · Visits 180,000+

Guess you like

Origin blog.csdn.net/Delicious_Life/article/details/105589714
Recommended