pt-query-digest Reading from STDIN …问题

今天优化Box Anemometer慢日志导入的脚本,在调试时pt-query-digest一直卡在Reading from STDIN ...不动,而别一台机器顺利执行成功。 查看帮助

pt-query-digest --help
pt-query-digest analyzes MySQL queries from slow, general, and binary log files.
It can also analyze queries from C<SHOW PROCESSLIST> and MysqL protocol data
from tcpdump. By default, queries are grouped by fingerprint and reported in
descending order of query time (i.e. the slowest queries first). If no C<FILES>
are given, the tool reads C<STDIN>. The optional C<DSN> is used for certain
options like L<"--since"> and L<"--until">. For more details, please use the
--help option, or try 'perldoc /usr/local/percona-toolkit/bin/pt-query-digest'
for complete documentation.

意思是如果没有给定FILE则等待输入,ls命令验证是文件不存在,原因是跟另一台机器的文件名不一样,拷贝命令过来直接执行肯定不行啦,把文件名改为本机的慢日志名称即可执行完成

相关文章

这篇文章主要介绍“hive和mysql的区别是什么”,在日常操作中...
这篇“MySQL数据库如何改名”文章的知识点大部分人都不太理解...
这篇文章主要介绍“mysql版本查询命令是什么”的相关知识,小...
本篇内容介绍了“mysql怎么修改字段的内容”的有关知识,在实...
这篇文章主要讲解了“mysql怎么删除unique约束”,文中的讲解...
今天小编给大家分享一下mysql怎么查询不为空的字段的相关知识...