O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required