From 3676ccdbd69f5088c413c07b468067240ccc2f3e Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Mon, 14 Nov 2022 11:00:28 +0800 Subject: [PATCH] revert 39030 --- dumpling/export/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/dumpling/export/config.go b/dumpling/export/config.go index 548535ed486ac..62ef45b45a0ae 100644 --- a/dumpling/export/config.go +++ b/dumpling/export/config.go @@ -221,9 +221,6 @@ func (conf *Config) GetDriverConfig(db string) *mysql.Config { driverCfg.MaxAllowedPacket = 0 if conf.Security.DriveTLSName != "" { driverCfg.TLSConfig = conf.Security.DriveTLSName - } else { - // Use TLS first. - driverCfg.TLSConfig = "preferred" } if conf.AllowCleartextPasswords { driverCfg.AllowCleartextPasswords = true