## Module 1: Upgrading the TiDB from v7.5.0 to v7.5.1

Before upgrading a TiDB cluster in production environment, you need to review compatibility changes, upgrade TiUP or TiUP offline mirror, edit TiUP topology configuration file, check the DDL and backup status of the cluster, and check the health status of the current cluster. Please refer to our [documentation](https://docs.pingcap.com/tidb/v7.5/upgrade-tidb-using-tiup) for more details

### Step 1. Log into the remote Linux

+ Click here - [Terminal 1](ssh://monitor1-ssh#1) to open a new terminal connected to the virtual machine assigned for your hands-on lab.

### Step 2. Check the version of the TiDB cluster

  ```bash
  tiup cluster display tidb-test
  ```

  ```output
  ...
  Cluster version:    v7.5.0
  ...
  ```

### Step 3. Change TiUP local mirror to version 7.5.1

  ```bash
  tiup mirror set tidb-community-server-7.5.1-linux-amd64
  ```

  ```output
  Successfully set mirror to /home/ec2-user/tidb-community-server-7.5.1-linux-amd64
  ```

### Step 4. Upgrade the TiDB cluster

+ Upgrade of the existing TiDB v7.5.0 cluster to TiDB v7.5.1

  ```bash
  tiup cluster upgrade tidb-test 7.5.1
  ```

  ```output
  Starting component `cluster`: /home/ec2-user/.tiup/components/cluster/v1.10.1/tiup-cluster upgrade tidb-test v7.5.0
  This operation will upgrade tidb v7.5.0 cluster tidb-test to v7.5.1.
  Do you want to continue? [y/N]:(default=N) y
  ...
  Upgraded cluster `tidb-test` successfully
  ```

### Step 5. Check the version of the TiDB cluster again

  ```bash
  tiup cluster display tidb-test
  ```

  ```output
  tiup is checking updates for component cluster ...
  Starting component `cluster`: /home/ec2-user/.tiup/components/cluster/v1.10.1/tiup-cluster display tidb-test
  Cluster type:       tidb
  Cluster name:       tidb-test
  Cluster version:    v7.5.1
  ...
  ```
