diff --git a/pkg/sink/mysql/db_helper.go b/pkg/sink/mysql/db_helper.go index 298ffe0796c..126fec9a9eb 100644 --- a/pkg/sink/mysql/db_helper.go +++ b/pkg/sink/mysql/db_helper.go @@ -168,7 +168,6 @@ func generateDSNByConfig( // set the `tidb_enable_external_ts_read` to `OFF`, so cdc could write to the sink dsnCfg.Params["tidb_enable_external_ts_read"] = fmt.Sprintf(`"%s"`, tidbEnableExternalTSRead) } - dsnClone := dsnCfg.Clone() dsnClone.Passwd = "******" log.Info("sink uri is configured", zap.String("dsn", dsnClone.FormatDSN()))