Skip to content

GetNextPosition() get result (,0) #1017

Open
@GitGreenHand

Description

@GitGreenHand

v1.11.0
code :

syncer := replication.NewBinlogSyncer(cfg)
nextPosition := syncer.GetNextPosition()
fmt.Println("Current binlog:", nextPosition)

result :

Current binlog: (, 0)

I want to get mysql current position ,so I find this GetNextPosition() method ,but it return (,0).
I don't know this method means?
it does not to connect mysql for getting lately position?
if I wan to get current position of mysql , how to get it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions