MySQL Server Error Log Contains: [Warning] Unsafe Statement Written to the Binary Log Using Statement Format Since BINLOG_FORMAT = STATEMENT

(Doc ID 1507801.1)

Last updated on SEPTEMBER 11, 2017

Applies to:

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

Symptoms

When executing a query like INSERT ... ON DUPLICATE KEY ... for a table with more than one unique key, the following warning is written to the error log:

 

Changes

Either of the following changes may trigger the warning to start occuring:

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms