Update internal/cmd/commands/connect/mysql.go

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
pull/5749/head
Enbiya Göral 11 months ago committed by GitHub
parent 7683a9a8bd
commit 8ebca68f5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -89,7 +89,7 @@ func (m *mysqlFlags) buildArgs(c *Command, port, ip, _ string, creds proxy.Crede
return nil, nil, proxy.Credentials{}, fmt.Errorf("Error closing password file after writing to %s: %w", passfile.Name(), err)
}
// --defaults-file must be the first argument
args = append(args, fmt.Sprintf("--defaults-file=%s", passfile.Name()))
args = append([]string{"--defaults-file=" + passfile.Name()}, args...)
if c.flagDbname == "" {
c.UI.Warn("Credentials are being brokered but no -dbname parameter provided. mysql may misinterpret another parameter as the database name.")

Loading…
Cancel
Save