Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Assign default username, port separately

天舟76e341198a8b
diff --git a/bin/bb/dump/dump.go b/bin/bb/dump/dump.go
index 7ba3bb2b02..af3665ce5f 100644
--- a/bin/bb/dump/dump.go
+++ b/bin/bb/dump/dump.go
@@ -28,8 +28,11 @@ func Dump(databaseType, username, password, hostname, port, database, directory
switch databaseType {
case "mysql":
- if username == "" && port == "" {
- username, port = "root", "3306"
+ if username == "" {
+ username = "root"
+ }
+ if port == "" {
+ port = "3306"
}
tlsConfig, err := tlsCfg.GetSslConfig()
if err != nil {