reverted default to native password authentication.

This commit is contained in:
Mark Beamer Jr 2018-06-06 18:26:33 -04:00
parent 396f42bc91
commit 8d4055e3eb

View file

@ -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.