Update go-sql-driver pkg to support checkConnLiveness (#9766)

Fixes #9679
This commit is contained in:
Praveen raj Mani
2020-06-05 04:41:42 +05:30
committed by GitHub
parent 5e529a1c96
commit cdd6c9f52e
3 changed files with 4 additions and 1 deletions

View File

@@ -364,6 +364,7 @@ func NewMySQLTarget(id string, args MySQLArgs, doneCh <-chan struct{}, loggerOnc
Addr: args.Host.String() + ":" + args.Port,
DBName: args.Database,
AllowNativePasswords: true,
CheckConnLiveness: true,
}
args.DSN = config.FormatDSN()