1223
MySQLERRORNotableSyntax / VersionHIGH confidence

Command not allowed with this MySQL version

Production Risk

Medium — replication safety requires careful binlog format selection.

What this means

ER_MIXED_COMMANDS_FOLLOWING (1223, SQLSTATE 0A000) is raised when a command that is not allowed in the current replication or SQL mode context is executed. Often related to mixing statement-based and row-based replication commands.

Why it happens
  1. 1Executing a non-deterministic statement in statement-based binary logging mode
  2. 2Using a command restricted by the current binlog_format setting
How to reproduce
trigger — this will error
trigger — this will error
-- In statement-based binlog mode with non-deterministic function
INSERT INTO t1 SELECT UUID();  -- may trigger warning/error

expected output

ERROR 1223 (0A000): The used command is not allowed with this MySQL version

Fix

Switch to ROW-based binary logging

Switch to ROW-based binary logging
SET SESSION binlog_format = 'ROW';

Why this works

ROW format logs the actual changed rows, avoiding issues with non-deterministic statements.

Sources
Official documentation ↗

MySQL 8.0 — 1223 ER_MIXED_COMMANDS_FOLLOWING

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MySQL errors