lab_code: demo_011
title_en: Migrate from MySQL to TiDB Using TiDB Data Migration
title_zh: 使用 TiDB Data Migration 从 MySQL 迁移到 TiDB
title_ja: TiDB データ移行を使用して MySQL から TiDB に移行する
title_ko: TiDB Data Migration을 사용하여 MySQL에서 TiDB로 마이그레이션
description_en: This hands-on lab demonstrates how to migrate from MySQL to TiDB using TiDB Data Migration. TiDB Data Migration is a powerful tool that simplifies the migration process by providing a unified interface for migrating data from MySQL to TiDB. This lab shows you how to migrate from MySQL to TiDB using TiDB Data Migration, including setting up the migration task and verifying the migration result.
description_zh: 本实验演示了如何使用 TiDB Data Migration 从 MySQL 迁移到 TiDB。TiDB Data Migration 是一个强大的工具，通过提供统一的界面，简化了从 MySQL 迁移到 TiDB 的迁移过程。本实验向您展示了如何使用 TiDB Data Migration 从 MySQL 迁移到 TiDB，包括设置迁移任务和验证迁移结果。
description_ja: このハンズオン演習では、TiDB Data Migration を使用して MySQL から TiDB に移行する方法を示します。TiDB Data Migration は、MySQL から TiDB へのデータ移行を行うための統一されたインターフェースを提供することで、移行プロセスを簡素化する強力なツールです。この演習では、TiDB Data Migration を使用して MySQL から TiDB に移行する方法、つまり移行タスクの設定と移行結果の確認方法を示します。
description_ko: 이 실습에서는 TiDB Data Migration을 사용하여 MySQL에서 TiDB로 마이그레이션하는 방법을 보여줍니다. TiDB Data Migration은 MySQL에서 TiDB로 데이터를 마이그레이션하기 위한 통합된 인터페이스를 제공하여 마이그레이션 프로세스를 간소화하는 강력한 도구입니다. 이 실습에서는 TiDB Data Migration을 사용하여 MySQL에서 TiDB로 마이그레이션하는 방법을 보여줍니다. 마이그레이션 작업을 설정하고 마이그레이션 결과를 확인하는 방법을 보여줍니다.
splash_image_en: https://lab-static.pingcap.com/quick-demo/demo_011_en.png
splash_image_zh: https://lab-static.pingcap.com/quick-demo/demo_011_en.png
splash_image_ja: https://lab-static.pingcap.com/quick-demo/demo_011_en.png
splash_image_ko: https://lab-static.pingcap.com/quick-demo/demo_011_en.png
lab_level: Intermediate
category_en:
  - Foundational Capability
  - Data Migration
category_zh:
  - 基础能力
  - 数据迁移
category_ja:
  - 基礎能力
  - データ移行
category_ko:
  - 기초 능력
  - 데이터 마이그레이션
authors:
  - Todd Bao (CEG)
delivery_type: Self-Paced
tidb_environments:
  - TiDB Self-Managed
tidb_versions:
  - 8.1.1
  - 8.5.1
target_audience:
  - Architect
  - DBA
  - DevOps
regions:
  aws:
    - oregon
    - tokyo
    - singapore
    - frankfurt
credits: 5
credit_redeemable: true
employee_only: false
estimated_duration_minutes: 60

topology:
  - role: monitor
    node_count: 1
    web_ssh: true
    web_ssh_name: "TiUP Control Machine"
    ssh_user: ec2-user
  - role: pd
    node_count: 1
  - role: kv
    node_count: 3
  - role: db
    node_count: 2
  - role: mysql
    node_count: 1

requirements:
  - type: "CloudStack"

bootstrap:
  - name: "prepare monitor"
    type: "ShellScript"
    target:
      - monitor1
    script: ./scripts/prepare-monitor.sh

  - name: "prepare tidb"
    type: "ShellScript"
    target:
      - monitor1
    shell: |
      set -e
      sed -i "s|--yes|--yes >> /home/ec2-user/create-cluster-vinput.log 2>\&1|" /home/ec2-user/create-cluster-vinput.sh
      /home/ec2-user/create-cluster-vinput.sh ${TIDB_VERSION} ${REGION_NAME}

features:
  enable_content_explain: false
