diff --git a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go index e101f3cb9f..4b12268f8e 100644 --- a/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go +++ b/dbm-services/mysql/db-tools/dbactuator/pkg/util/mysqlutil/mysql_dumper.go @@ -292,13 +292,13 @@ func dumpIsOk(errLog string) (err error) { return err } // ignore warning - w := regexp.MustCompile(`[Warning] Using a password on the command line interface can be insecure`) + w := regexp.MustCompile(`\[Warning\] Using a password on the command line interface can be insecure`) r := regexp.MustCompile(`Couldn't find table:`) var lines []string scanner := bufio.NewScanner(fd) for scanner.Scan() { l := scanner.Text() - if !r.MatchString(l) && lo.IsNotEmpty(l) && !w.MatchString(l) { + if !r.MatchString(l) && !w.MatchString(l) && lo.IsNotEmpty(l) { lines = append(lines, l) } }