1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

fix: 同步数据库时,忽略 recycle_bin (#2591)

Refs #2589
This commit is contained in:
ssongliu 2023-10-18 10:16:22 +08:00 committed by GitHub
parent 161ccc8039
commit eeb80749a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ func (r *Local) SyncDB(version string) ([]SyncDBInfo, error) {
if len(parts) != 2 { if len(parts) != 2 {
continue 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 continue
} }
dataItem := SyncDBInfo{ dataItem := SyncDBInfo{

View File

@ -279,7 +279,7 @@ func (r *Remote) SyncDB(version string) ([]SyncDBInfo, error) {
if err = rows.Scan(&dbName, &charsetName); err != nil { if err = rows.Scan(&dbName, &charsetName); err != nil {
return datas, err 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 continue
} }
dataItem := SyncDBInfo{ dataItem := SyncDBInfo{