I have a slow log which always ends with this.
slow.log: 99% 00:15 remain
It then spits out this error and repeats it until the process is stopped.
Pipeline process 4 (iteration) caused an error: DBD::mysql::st execute failed: MySQL server has gone away [for Statement “SELECT first_seen
, last_seen
, reviewed_by
, reviewed_on
, comments
, CONV(checksum, 10, 16) AS checksum_conv FROM slow_query_log
.query_review
WHERE checksum=CONV(?, 16, 10)” with ParamValues: 0=‘D8703A6195E126FD’] at /usr/local/bin/pt-query-digest line 8672.
PT
pt-query-digest --user=$user --password=$password --review S=$socket,D=slow_query_log,t=query_review --review-history S=$socket,D=slow_query_log,t=query_review_history --no-report --limit=0% --filter=" $event->{Bytes} = length($event->{arg}) and $event->{hostname}="$HOSTNAME"" $1
$ rpm -q perl-DBD-MySQL
perl-DBD-MySQL-3.0007-2.el5
Slow Log Info
Percona Server 5.1.60
du -hs slow.log
72G slow.log
percona-toolkit-2.1.1