1.在我的 mysql/bin 文件夹下并没有 pt-query-digest.pl 文件,所以需要手动下载!首先安装perl支持后,接下来在 mysql/bin 文件夹下打开 git bash窗口,输入命令:
curl -o pt-query-digest.pl https://www.percona.com/get/pt-query-digest
进度变为100%后即为下载成功!
2.简单使用:
perl pt-query-digest.pl --help//获取使用帮助
perl pt-query-digest.pl ../data/mysql-slow.log //简单查询
原文链接:https://blog.csdn.net/living_ren/article/details/79364281
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~