Common SQL Errors

MySQL Error 1315: ER_UPDATE_LOG_DEPRECATED_IGNORED – How to Fix and Prevent

Galaxy Team
August 6, 2025

MySQL ignores SET SQL_LOG_UPDATE because the update log is obsolete and replaced by the binary log.

Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is MySQL error 1315?

MySQL Error 1315: ER_UPDATE_LOG_DEPRECATED_IGNORED appears when a session executes SET SQL_LOG_UPDATE. The statement is ignored because the legacy update log was removed after MySQL 5.0 in favor of the binary log. Remove or replace the deprecated command to resolve the warning.

Error Highlights

Typical Error Message

The update log is deprecated and replaced by the binary

Error Type

Deprecation Warning

Language

MySQL

Symbol

ER_UPDATE_LOG_DEPRECATED_IGNORED

Error Code

1315

SQL State

42000

Explanation

Table of Contents

What does “The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored” mean?

MySQL issues this warning (error code 1315, SQLSTATE 42000) when a client executes SET SQL_LOG_UPDATE. The directive once enabled the update log, but that log was removed in MySQL 5.0. Instead, MySQL relies on the binary log for replication and point-in-time recovery.

The server therefore ignores the request and returns ER_UPDATE_LOG_DEPRECATED_IGNORED. Although classified as a warning, the message may break automation scripts that check for a clean result set or rely on the update log behavior.

When does MySQL raise error 1315?

The error appears during session initialization scripts, legacy application code, or stored routines that still issue SET SQL_LOG_UPDATE. It can also surface after a MySQL upgrade if outdated configuration snippets were not cleaned up.

Why should you fix the warning?

Leaving deprecated commands in code reduces clarity, clutters logs, and can hide truly critical errors. Removing SET SQL_LOG_UPDATE ensures forward compatibility with newer MySQL versions and simplifies replication troubleshooting.

Common Causes

Legacy init scripts

Old shell or application startup scripts often contained SET SQL_LOG_UPDATE to toggle the now-removed update log.

Outdated ORM generators

Early ORM versions for PHP and Perl emitted SET SQL_LOG_UPDATE before each write transaction and were never patched.

Manual testing snippets

Developers sometimes paste historical examples into modern sessions without realizing the directive is obsolete.

Post-upgrade leftovers

A MySQL upgrade may leave deprecated parameters in my.cnf or stored procedures that no longer serve any purpose.

Related Errors

ER_BINLOG_LOGGING_IMPOSSIBLE

Raised when binary logging is disabled but required for a statement. Unlike 1315, this stops execution.

ER_UNUSED_LOG_FILE

Appears when attempting to access an obsolete log file defined in my.cnf.

ER_TRG_ON_VIEW_OR_TEMP_TABLE

Occurs when a trigger references a view or temp table that cannot be logged properly in the binary log.

FAQs

Is error 1315 fatal?

No. It is a warning. The affected statement still runs, but the directive is ignored.

Can I suppress the warning globally?

Yes. Start MySQL with log_error_verbosity=2 or use SHOW WARNINGS if you only need to filter programmatically.

Does removing SET SQL_LOG_UPDATE impact replication?

No. Replication now relies exclusively on the binary log, which is independent of the deprecated update log.

How does Galaxy help?

Galaxy’s linter detects deprecated MySQL syntax and proposes auto-fixes, preventing the warning from appearing in shared queries.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo