diff --git a/pkg/tidb/client.go b/pkg/tidb/client.go index 4e585e2087..e349967385 100644 --- a/pkg/tidb/client.go +++ b/pkg/tidb/client.go @@ -120,7 +120,7 @@ func (c *Client) OpenSQLConn(user string, pass string) (*gorm.DB, error) { dsnConfig.Addr = addr dsnConfig.User = user dsnConfig.Passwd = pass - dsnConfig.Timeout = time.Second + dsnConfig.Timeout = time.Second * 60 dsnConfig.ParseTime = true dsnConfig.Loc = time.Local dsnConfig.MultiStatements = true