SHOW MIGRATION STATUS

描述

SHOW MIGRATION STATUS 语法用于查询指定数据迁移作业的详细情况

语法

语法 铁路图

  1. ShowMigrationStatus ::=
  2. 'SHOW' 'MIGRATION' 'STATUS' migrationJobId
  3. migrationJobId ::=
  4. string

补充说明

  • migrationJobId 需要通过 SHOW MIGRATION LIST 语法查询获得

返回值说明

说明
item数据迁移作业分片编号
data source数据迁移源
status数据迁移作业状态
processed_records_count处理数据行数
inventory_finished_percentage数据迁移作业完成度
incremental_idle_seconds增量闲置时间
error_message错误信息提示

示例

  • 查询指定数据迁移作业的详细情况
  1. SHOW MIGRATION STATUS 'j010180026753ef0e25d3932d94d1673ba551';
  1. mysql> SHOW MIGRATION STATUS 'j010180026753ef0e25d3932d94d1673ba551';
  2. +------+-------------+--------------------------+--------+-------------------------+-------------------------------+--------------------------+---------------+
  3. | item | data_source | status | active | processed_records_count | inventory_finished_percentage | incremental_idle_seconds | error_message |
  4. +------+-------------+--------------------------+--------+-------------------------+-------------------------------+--------------------------+---------------+
  5. | 0 | ds_1 | EXECUTE_INCREMENTAL_TASK | true | 6 | 100 | 25 | |
  6. +------+-------------+--------------------------+--------+-------------------------+-------------------------------+--------------------------+---------------+
  7. 1 row in set (0.01 sec)

保留字

SHOWMIGRATIONSTATUS

相关链接