## 模块 1：将 TiDB 从 v7.5.0 升级到 v7.5.1

在生产环境中升级 TiDB 集群之前，你需要查看兼容性变更、升级 TiUP 或 TiUP 离线镜像、编辑 TiUP 拓扑配置文件、检查集群的 DDL 和备份状态，以及检查当前集群的健康状态。更多详细信息，请参考我们的 [文档](https://docs.pingcap.com/zh/tidb/v7.5/upgrade-tidb-using-tiup) 。

### 步骤 1. 登录到你的虚拟机

+ 点击这里 - [终端 1](ssh://monitor1-ssh#1) 打开一个新的终端，连接到为你的实践实验分配的虚拟机。

### 步骤 2. 检查 TiDB 集群的版本

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

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

### 步骤 3. 将 TiUP 本地镜像更改为 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
  ```

### 步骤 4. 升级 TiDB 集群

+ 将现有的 TiDB v7.5.0 集群升级到 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
   ```

### 步骤 5. 再次检查 TiDB 集群的版本

   ```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
   ...
   ```
