Binary log

To analyze the binary log using pt-query-digest, you should convert it to text format using the mysqlbinlog utility:

shell> sudo mysqlbinlog /var/lib/mysql/binlog.000639 > binlog.00063shell> pt-query-digest --type binlog binlog.000639  > binlog_digest

Get MySQL 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.