From 0b5b90d0c5d526e82907fc585d4207a3ad2216f8 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:16:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=97=B6=EF=BC=8C=E5=BF=BD=E7=95=A5=20recycle=5Fbin?= =?UTF-8?q?=20(#2591)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2589 --- backend/utils/mysql/client/local.go | 2 +- backend/utils/mysql/client/remote.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/utils/mysql/client/local.go b/backend/utils/mysql/client/local.go index 187a90079..e7bd624c1 100644 --- a/backend/utils/mysql/client/local.go +++ b/backend/utils/mysql/client/local.go @@ -269,7 +269,7 @@ func (r *Local) SyncDB(version string) ([]SyncDBInfo, error) { if len(parts) != 2 { continue } - if parts[0] == "SCHEMA_NAME" || parts[0] == "information_schema" || parts[0] == "mysql" || parts[0] == "performance_schema" || parts[0] == "sys" { + if parts[0] == "SCHEMA_NAME" || parts[0] == "information_schema" || parts[0] == "mysql" || parts[0] == "performance_schema" || parts[0] == "sys" || parts[0] == "recycle_bin" { continue } dataItem := SyncDBInfo{ diff --git a/backend/utils/mysql/client/remote.go b/backend/utils/mysql/client/remote.go index 062ea3534..f767275cb 100644 --- a/backend/utils/mysql/client/remote.go +++ b/backend/utils/mysql/client/remote.go @@ -279,7 +279,7 @@ func (r *Remote) SyncDB(version string) ([]SyncDBInfo, error) { if err = rows.Scan(&dbName, &charsetName); err != nil { return datas, err } - if dbName == "information_schema" || dbName == "mysql" || dbName == "performance_schema" || dbName == "sys" { + if dbName == "information_schema" || dbName == "mysql" || dbName == "performance_schema" || dbName == "sys" || dbName == "recycle_bin" { continue } dataItem := SyncDBInfo{