Skip to content

Conversation

@sunlicp
Copy link

@sunlicp sunlicp commented Dec 19, 2025

MySQL 8.4+ removed the SHOW MASTER STATUS command and replaced it with
SHOW BINARY LOG STATUS. This change adds version detection to automatically
use the appropriate command based on the MySQL server version.

Changes:

  • Added getBinlogStatusCommand() method in DebeziumUtils to detect MySQL
    version and return the correct binlog status command
  • MySQL 8.4+ uses SHOW BINARY LOG STATUS
  • Earlier versions continue to use SHOW MASTER STATUS
  • Updated MySqlConnection to use the new version-aware method

This ensures compatibility across MySQL 5.7, 8.0, 8.4+, and future versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant