From 8d4055e3eb1c18919978c53522a64d70139c43d1 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Wed, 6 Jun 2018 18:26:33 -0400 Subject: [PATCH] reverted default to native password authentication. --- bdb/drivers/mysql.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bdb/drivers/mysql.go b/bdb/drivers/mysql.go index dec80e0..19855fb 100644 --- a/bdb/drivers/mysql.go +++ b/bdb/drivers/mysql.go @@ -53,6 +53,7 @@ func MySQLBuildQueryString(user, pass, dbname, host string, port int, sslmode st } config.Addr += ":" + strconv.Itoa(port) config.TLSConfig = sslmode + config.AllowNativePasswords = false // MySQL is a bad, and by default reads date/datetime into a []byte // instead of a time.Time. Tell it to stop being a bad. -- 2.45.2