Skip to content

Commit

Permalink
Support for mysql fresher then 8.4 LTS
Browse files Browse the repository at this point in the history
closes #109
  • Loading branch information
laskoviymishka committed Nov 20, 2024
1 parent 1382bb9 commit af2e8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/providers/mysql/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (s *Storage) LoadTable(ctx context.Context, table abstract.TableDescription
func (s *Storage) getBinlogPosition(ctx context.Context, tx Queryable) (string, uint32, error) {
masterStatusQuery := "show master status;"
_, version := CheckMySQLVersion(s)
if strings.HasPrefix(version, "8.4") {
if strings.HasPrefix(version, "8.4") || strings.HasPrefix(version, "9") {
masterStatusQuery = " SHOW BINARY LOG STATUS;"
}

Expand Down

0 comments on commit af2e8db

Please sign in to comment.