1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

fix: 修改部分错误代码 (#2673)

This commit is contained in:
zhengkunwang 2023-10-25 11:01:27 +08:00 committed by GitHub
parent 86b6afe0b4
commit 287f047a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" || dbName == "__recycle_bin__" || parts[0] == "recycle_bin" { if dbName == "information_schema" || dbName == "mysql" || dbName == "performance_schema" || dbName == "sys" || dbName == "__recycle_bin__" || dbName == "recycle_bin" {
continue continue
} }
dataItem := SyncDBInfo{ dataItem := SyncDBInfo{