Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Return common.NotFound when the target dump database not found
天舟65422e24de22
diff --git a/plugin/db/mysql/mysql.go b/plugin/db/mysql/mysql.goindex 660002ef05..6aad43e734 100644--- a/plugin/db/mysql/mysql.go+++ b/plugin/db/mysql/mysql.go@@ -9,6 +9,7 @@ import ("io""strings"+ "github.com/bytebase/bytebase/common""github.com/bytebase/bytebase/plugin/db""github.com/bytebase/bytebase/plugin/db/util""github.com/go-sql-driver/mysql"@@ -667,7 +668,7 @@ func dumpTxn(ctx context.Context, txn *sql.Tx, database string, out io.Writer, s}}if !exist {- return fmt.Errorf("database %s not found", database)+ return common.Errorf(common.NotFound, fmt.Errorf("database %s not found", database))}dumpableDbNames = []string{database}} else {