diff --git a/driver.go b/driver.go index ba1297825..13c6463f6 100644 --- a/driver.go +++ b/driver.go @@ -115,6 +115,7 @@ func (d MySQLDriver) Open(dsn string) (driver.Conn, error) { // try the default auth plugin, if using the requested plugin failed errLog.Print("could not use requested auth plugin '"+plugin+"': ", err.Error()) plugin = defaultAuthPlugin + mc.cfg.AllowNativePasswords = true authResp, addNUL, err = mc.auth(authData, plugin) if err != nil { mc.cleanup()