diff --git a/backend/app/service/database_mysql.go b/backend/app/service/database_mysql.go index 07b39b50e..06feef640 100644 --- a/backend/app/service/database_mysql.go +++ b/backend/app/service/database_mysql.go @@ -533,7 +533,10 @@ func (u *MysqlService) LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlS info.Position = "OFF" rows, err := executeSqlForRows(app.ContainerName, app.Key, app.Password, "show master status;") if err != nil { - return nil, err + rows, err = executeSqlForRows(app.ContainerName, app.Key, app.Password, "SHOW BINARY LOG STATUS;") + if err != nil { + return nil, err + } } if len(rows) > 2 { itemValue := strings.Split(rows[1], "\t") diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index c6aa4dd16..6304eddff 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -201,7 +201,11 @@ - +