You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/how-to/get-started/explore-sql.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
---
2
-
title: Try TiDB
2
+
title: Explore SQL with TiDB
3
3
summary: Learn about the basic SQL statements for the TiDB database.
4
-
category: try tidb
4
+
category: how-to
5
+
aliases: ['/docs/try-tidb']
5
6
---
6
7
7
-
# Try TiDB
8
+
# Explore SQL with TiDB
8
9
9
-
After you successfully deploy a TiDB cluster, you can run SQL statements in TiDB. Because TiDB is compatible with MySQL, you can use THE MySQL client to connect to TiDB and run MySQL statements directly in most of the cases. For more information, see [Compatibility with MySQL](sql/mysql-compatibility.md).
10
+
After you successfully deploy a TiDB cluster, you can run SQL statements in TiDB. Because TiDB is compatible with MySQL, you can use THE MySQL client to connect to TiDB and run MySQL statements directly in most of the cases. For more information, see [Compatibility with MySQL](/sql/mysql-compatibility.md).
10
11
11
12
This page includes some basic SQL statements such as CRUD operations. For a complete list of the statements, see [TiDB SQL Syntax Diagram](https://pingcap.github.io/sqlgram/).
Copy file name to clipboardExpand all lines: dev/how-to/get-started/import-example-database.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
---
2
-
title: Bikeshare Example Database
2
+
title: Import Example Database
3
3
summary: Install the Bikeshare example database.
4
-
category: user guide
4
+
category: how-to
5
+
aliases: ['/docs/bikeshare-example-database/']
5
6
---
6
7
7
-
# Bikeshare Example Database
8
+
# Import Example Database
8
9
9
10
Examples used in the TiDB manual use [System Data](https://www.capitalbikeshare.com/system-data) from Capital Bikeshare, released under the [Capital Bikeshare Data License Agreement](https://www.capitalbikeshare.com/data-license-agreement).
This guide provides installation instructions for all TiDB components on a single developer machine. It is intended for evaluation purposes, and does not match the recommended usage for production systems.
10
11
11
-
See also [testing environment](../op-guide/binary-testing-deployment.md) and [production enviroment](../op-guide/binary-deployment.md) deployment.
12
+
See also [testing environment](/op-guide/binary-testing-deployment.md) and [production enviroment](/op-guide/binary-deployment.md) deployment.
12
13
13
14
The following local TCP ports will be used:
14
15
@@ -36,7 +37,7 @@ EOF
36
37
sudo cp /tmp/tidb.conf /etc/security/limits.d/
37
38
sudo sysctl -w fs.file-max=1000000
38
39
```
39
-
See the [production deployment](../op-guide/binary-deployment.md) optional kernel tuning parameters.
40
+
See the [production deployment](/op-guide/binary-deployment.md) optional kernel tuning parameters.
Copy file name to clipboardExpand all lines: dev/how-to/get-started/local-cluster/install-from-dbdeployer.md
+4-8
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ category: how-to
8
8
9
9
DBdeployer is designed to allow multiple versions of TiDB deployed concurrently. It is recommended for advanced users who are testing out new builds of TiDB, or testing compatibility across releases.
10
10
11
-
Similar to [Homebrew](install-from-homebrew.md), the DBdeployer installation method installs the tidb-server **without** the tikv-server or pd-server. This is useful for development environments, since you can test your application's compatibility with TiDB without needing to deploy a full TiDB platform.
11
+
Similar to [Homebrew](./install-from-homebrew.md), the DBdeployer installation method installs the tidb-server **without** the tikv-server or pd-server. This is useful for development environments, since you can test your application's compatibility with TiDB without needing to deploy a full TiDB platform.
12
12
13
13
> **Note**: Internally this installation uses goleveldb as the storage engine. It is much slower than TiKV, and any benchmarks will be unreliable.
14
14
@@ -25,9 +25,7 @@ Similar to [Homebrew](install-from-homebrew.md), the DBdeployer installation met
25
25
</label>
26
26
<sectionid="MacOSContent">
27
27
28
-
After <ahref="https://github.com/datacharmer/dbdeployer">installing DBdeployer</a>:
29
-
30
-
Install a MySQL 5.7 client:
28
+
After <ahref="https://github.com/datacharmer/dbdeployer">installing DBdeployer</a>, install a MySQL 5.7 client:
For more details about TiSpark, see [here](../tispark/tispark-quick-start-guide.md).
177
+
For more details about TiSpark, see [here](/tispark/tispark-quick-start-guide.md).
177
178
178
-
Here is [a 5-minute tutorial](https://www.pingcap.com/blog/how_to_spin_up_an_htap_database_in_5_minutes_with_tidb_tispark/) for macOS users that shows how to spin up a standard TiDB cluster using Docker Compose on your local computer.
179
+
Here is [a 5-minute tutorial](https://www.pingcap.com/blog/how_to_spin_up_an_htap_database_in_5_minutes_with_tidb_tispark/) for macOS users that shows how to spin up a standard TiDB cluster using Docker Compose on your local computer.
Copy file name to clipboardExpand all lines: dev/how-to/get-started/read-historical-data.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
---
2
-
title: Reading Data from History Versions
2
+
title: Read Historical Data
3
3
summary: Learn about how TiDB reads data from history versions.
4
-
category: advanced
4
+
category: how-to
5
+
aliases: ['/docs/op-guide/history-read/']
5
6
---
6
7
7
-
# Reading Data From History Versions
8
+
# Read Historical Data
8
9
9
10
This document describes how TiDB reads data from the history versions, how TiDB manages the data versions, as well as an example to show how to use the feature.
10
11
@@ -33,7 +34,7 @@ After reading data from history versions, you can read data from the latest vers
33
34
34
35
TiDB implements Multi-Version Concurrency Control (MVCC) to manage data versions. The history versions of data are kept because each update/removal creates a new version of the data object instead of updating/removing the data object in-place. But not all the versions are kept. If the versions are older than a specific time, they will be removed completely to reduce the storage occupancy and the performance overhead caused by too many history versions.
35
36
36
-
In TiDB, Garbage Collection (GC) runs periodically to remove the obsolete data versions. For GC details, see [TiDB Garbage Collection (GC)](../op-guide/gc.md)
37
+
In TiDB, Garbage Collection (GC) runs periodically to remove the obsolete data versions. For GC details, see [TiDB Garbage Collection (GC)](/op-guide/gc.md)
37
38
38
39
Pay special attention to the following two variables:
0 commit comments