Skip to content

close sync with err: ERROR 4031 #963

Open
@imysm

Description

@imysm

go version 1.22.10
mysql version 8.0.32
go-mysql 1.9.1

When using the canal method to parse the binlog in real time, the following error occurs intermittently: "binlogstreamer.go:78 close sync with err: ERROR 4031 (HY000): The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior." I wonder if it is necessary to set some additional parameters when connecting to MySQL?

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