From b6889903214b126f134bf9b64e94a48204ba2ae1 Mon Sep 17 00:00:00 2001 From: shaunakv1 Date: Sun, 20 Apr 2025 23:24:57 -0400 Subject: [PATCH] enabled TLS support with preferred config. so when server requests the connection is upgraded. fixes https://github.com/databacker/mysql-backup/issues/428 --- pkg/database/connection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/database/connection.go b/pkg/database/connection.go index bf1a61f9..e6d9203d 100644 --- a/pkg/database/connection.go +++ b/pkg/database/connection.go @@ -26,5 +26,6 @@ func (c Connection) MySQL() string { config.Addr = fmt.Sprintf("%s:%d", c.Host, c.Port) } config.ParseTime = true + config.TLSConfig = "preferred" return config.FormatDSN() }