fix mysql config for native password authentication (#7436)

fixes #7430
This commit is contained in:
poornas 2019-03-28 10:45:22 -07:00 committed by kannappanr
parent 16ba679103
commit dd1d69ab5c

View File

@ -210,6 +210,7 @@ func NewMySQLTarget(id string, args MySQLArgs) (*MySQLTarget, error) {
Net: "tcp", Net: "tcp",
Addr: args.Host.String() + ":" + args.Port, Addr: args.Host.String() + ":" + args.Port,
DBName: args.Database, DBName: args.Database,
AllowNativePasswords: true,
} }
args.DSN = config.FormatDSN() args.DSN = config.FormatDSN()