My Oracle Support Banner

Reading Encrypted Binary Logs Using mysqlbinlog from 8.0.13, 5.7, or Earlier: "ERROR: Binlog has bad magic number; It's not a binary log file that can be used by this version of MySQL", "ERROR: File is not a binary log file." (Doc ID 2495021.1)

Last updated on MARCH 02, 2020

Applies to:

MySQL Server - Version 8.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to read events from an encrypted binary log file, mysqlbinlog exists with an error.

The error with mysqlbinlog from MySQL 8.0.13 is:

 

Changes

Binary log encryption (binlog_encryption) has been enabled.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.