# 从 TiDB Cloud 导出数据 

__*TiDB Cloud 数据迁移*__
__*TiDB Cloud 数据导出*__

+ Dumpling 进行数据导出
-------------------------------------------------------------
下载并安装 TiUP:
```
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
```

声明全局环境变量:
```
source .bash_profile
```


安装 Dumpling
```
tiup install dumpling
```

使用 TiDB 中的 Dumpling 导出数据。
```
tiup dumpling -h ${tidb-endpoint} -P 3306 -u ${user} -F 67108864 -t 4 -o /path/to/export/dir
```

所需的最低权限如下所示:
SELECT
RELOAD
LOCK TABLES
REPLICATION CLIENT

目前,Dumpling 仅支持 Mydumper 格式输出,通过使用 TiDB Lightning 可以轻松恢复到 MySQL 兼容数据库中。