## Module 4: Connecting to TiDB Server

### Step 1. Connect to TiDB

  ```bash
  mysql -h ${HOST_DB1_PRIVATE_IP} --port 4000 -u root
  ```

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

  ```sql
  SELECT TIDB_VERSION()\G
  ```

  ```output
  *************************** 1. row ***************************
  TIDB_VERSION(): Release Version: v7.5.0
  Edition: Community
  Git Commit Hash: 069631e2ecfedc000ffb92c67207bea81380f020
  Git Branch: heads/refs/tags/v7.5.0
  UTC Build Time: 2023-11-24 08:50:14
  GoVersion: go1.21.3
  Race Enabled: false
  TiKV Min Version: 7.2.0-alpha
  Check Table Before Drop: false
  Store: tikv
  1 row in set (0.00 sec)
  ```

### Step 3. Exit to the Control Machine terminal

  ```sql
  EXIT;
  ```

  ```output
  Bye
  ```
