sunlicp opened a new pull request, #4196:
URL: https://github.com/apache/flink-cdc/pull/4196
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]