Offline Deployment of TiDB: Using Root or TiDB User

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 使用root还是tidb用户离线部署TIDB

| username: TiDBer_iLonNMYE

[TiDB Usage Environment] Testing
[TiDB Version] V5.4.3
[Reproduction Path] What operations were performed to encounter the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
The deployment documentation is unclear. Should the TiDB cluster be deployed using the root user or the tidb user?

Reference: 使用 TiUP 部署 TiDB 集群 | PingCAP 文档中心

Deploying TiUP Components in an Offline Environment

After sending the offline package to the control machine of the target cluster, execute the following commands to install the TiUP components:

tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz && \
sh tidb-community-server-${version}-linux-amd64/local_install.sh && \
source /home/tidb/.bash_profile

[Attachment: Screenshot/Log/Monitoring]

| username: Kongdom | Original post link

Both root and tidb users can be used, but it is recommended to use the tidb user for easier management.

| username: Kongdom | Original post link

Oh, I understand. You mean to give suggestions for the document, right? You can move to the [Suggestions and Feedback] section to submit them.

| username: TiDBer_iLonNMYE | Original post link

Thank you.
Can user identification be added before the command? For example, root# or tidb$.

| username: Kongdom | Original post link

Sure, you can submit it in the [Suggestions and Feedback] section.

| username: caiyfc | Original post link

Wouldn’t adding it make it inconvenient to copy all the commands with one click? :joy: