From d7cbf9fa287bbb4ea23907083767e883a0ecb824 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 16 Apr 2020 14:00:33 +0800 Subject: [PATCH 1/2] cherry pick #2747 to release-2.1 Signed-off-by: sre-bot --- TOC.md | 2 +- reference/tools/tidb-control.md | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/TOC.md b/TOC.md index ba95d7be298d..30bbe81c1d07 100644 --- a/TOC.md +++ b/TOC.md @@ -286,7 +286,7 @@ - [PD Control](/reference/tools/pd-control.md) - [PD Recover](/reference/tools/pd-recover.md) - [TiKV Control](/reference/tools/tikv-control.md) - - [TiDB Controller](/reference/tools/tidb-control.md) + - [TiDB Control](/reference/tools/tidb-control.md) - [工具下载](/reference/tools/download.md) + 常见问题 (FAQ) - [TiDB FAQ](/faq/tidb.md) diff --git a/reference/tools/tidb-control.md b/reference/tools/tidb-control.md index 2d6cf9e29f62..9776c507d077 100644 --- a/reference/tools/tidb-control.md +++ b/reference/tools/tidb-control.md @@ -1,17 +1,25 @@ --- -title: TiDB Controller 使用说明 +title: TiDB Control 使用说明 category: reference --- -# TiDB Controller 使用说明 +# TiDB Control 使用说明 -TiDB Controller 是 TiDB 的命令行工具,用于获取 TiDB 状态信息,多用于调试。 +TiDB Control 是 TiDB 的命令行工具,用于获取 TiDB 状态信息,多用于调试。 ## 源码编译 +<<<<<<< HEAD - 编译环境要求:[Go](https://golang.org/) Version 1.7 以上。 - 编译步骤:在 [TiDB Controller 项目](https://github.com/pingcap/tidb-ctl)根目录,使用 `make` 命令进行编译,生成 tidb-ctl。 - 编译文档:帮助文档在 doc 文件夹下,如丢失或需要更新,可通过 `make doc` 命令生成帮助文档。 +======= +编译环境要求:[Go](https://golang.org/) Version 1.7 以上 + +编译步骤:在 [TiDB Control 项目](https://github.com/pingcap/tidb-ctl)根目录,使用 `make` 命令进行编译,生成 tidb-ctl。 + +编译文档:帮助文档在 doc 文件夹下,如丢失或需要更新,可通过 `make doc` 命令生成帮助文档。 +>>>>>>> aa0f0d5... reference: rename TiDB Controller to TiDB Control (#2747) ## 使用介绍 @@ -35,7 +43,11 @@ TiDB Controller 是 TiDB 的命令行工具,用于获取 TiDB 状态信息, 如不添加地址和端口将使用默认值,默认的地址是 127.0.0.1 (服务地址只能使用 IP 地址),默认的端口是 10080。**连接选项是顶级选项,适用于以下所有命令。** +<<<<<<< HEAD 目前,TiDB Controller 可以获取四类信息,分别通过以下四个命令获得: +======= +目前,TiDB Control 包含以下子命令,各个子命令的具体用法可以使用 `tidb-ctl SUBCOMMAND --help` 获取使用帮助: +>>>>>>> aa0f0d5... reference: rename TiDB Controller to TiDB Control (#2747) * `tidb-ctl mvcc` - MVCC 信息 * `tidb-ctl region` - Region 信息 From 2b8025b536f2d7095b00b5aa8e96497f9b773db1 Mon Sep 17 00:00:00 2001 From: Shuaipeng Yu Date: Thu, 16 Apr 2020 15:23:03 +0800 Subject: [PATCH 2/2] resolve conflicts Signed-off-by: Shuaipeng Yu --- reference/tools/tidb-control.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/reference/tools/tidb-control.md b/reference/tools/tidb-control.md index 9776c507d077..5bac162fbd3f 100644 --- a/reference/tools/tidb-control.md +++ b/reference/tools/tidb-control.md @@ -9,17 +9,11 @@ TiDB Control 是 TiDB 的命令行工具,用于获取 TiDB 状态信息,多 ## 源码编译 -<<<<<<< HEAD -- 编译环境要求:[Go](https://golang.org/) Version 1.7 以上。 -- 编译步骤:在 [TiDB Controller 项目](https://github.com/pingcap/tidb-ctl)根目录,使用 `make` 命令进行编译,生成 tidb-ctl。 -- 编译文档:帮助文档在 doc 文件夹下,如丢失或需要更新,可通过 `make doc` 命令生成帮助文档。 -======= 编译环境要求:[Go](https://golang.org/) Version 1.7 以上 编译步骤:在 [TiDB Control 项目](https://github.com/pingcap/tidb-ctl)根目录,使用 `make` 命令进行编译,生成 tidb-ctl。 编译文档:帮助文档在 doc 文件夹下,如丢失或需要更新,可通过 `make doc` 命令生成帮助文档。 ->>>>>>> aa0f0d5... reference: rename TiDB Controller to TiDB Control (#2747) ## 使用介绍 @@ -43,11 +37,7 @@ TiDB Control 是 TiDB 的命令行工具,用于获取 TiDB 状态信息,多 如不添加地址和端口将使用默认值,默认的地址是 127.0.0.1 (服务地址只能使用 IP 地址),默认的端口是 10080。**连接选项是顶级选项,适用于以下所有命令。** -<<<<<<< HEAD -目前,TiDB Controller 可以获取四类信息,分别通过以下四个命令获得: -======= 目前,TiDB Control 包含以下子命令,各个子命令的具体用法可以使用 `tidb-ctl SUBCOMMAND --help` 获取使用帮助: ->>>>>>> aa0f0d5... reference: rename TiDB Controller to TiDB Control (#2747) * `tidb-ctl mvcc` - MVCC 信息 * `tidb-ctl region` - Region 信息