Consultation on TiDB Deployment

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

Original topic: TiDB部署请教

| username: 超7成网友

If using the online installation method, are all of these required, or is just the runtime environment sufficient?

Is gcc 7.x sufficient, or can a higher version like 9.x be used?

| username: TiDBer_小阿飞 | Original post link

The online method should automatically download and install the dependencies, right?

| username: TiDBer_jYQINSnf | Original post link

Do you want to compile or run it?
If you want to run it, both tiup and k8s will work. You only need these things for compiling. And it might not even compile successfully.

| username: 超7成网友 | Original post link

Is it true that with tiup, you don’t need to install those things, and you only need to install the runtime dependencies like glibc?

| username: WalterWj | Original post link

This is required for compilation, just pay attention to what needs to be noted during execution.

| username: TiDBer_jYQINSnf | Original post link

Yes, most of TiDB’s operations are run using images, and it is rare to run it from source code installation.

| username: tidb菜鸟一只 | Original post link

If it’s just for installation, none of these are needed.

| username: 源de爸 | Original post link

As long as the glibc version is suitable.

| username: 连连看db | Original post link

Compiling it yourself doesn’t necessarily guarantee success. I tried it once and it gave me a headache.

| username: GreenGuan | Original post link

Just use tiup to download its binary package directly.

| username: Soysauce520 | Original post link

Run a tiup check to see most of the issues.

| username: RenlySir | Original post link

Not necessary. Just follow the deployment requirements. The screenshot refers to compiling the source code yourself if needed.

| username: kelvin | Original post link

You can just follow the official documentation for deployment.

| username: TiDBer_rvITcue9 | Original post link

Run a tiup check

| username: zhanggame1 | Original post link

No need, TiDB installation does not require compilation.

| username: mono | Original post link

Deployment does not require these environments. You can directly use the officially released compiled packages.

| username: 超7成网友 | Original post link

My local version is lower than this, but it started up :joy: I’m worried there might be issues. Is it necessary to upgrade to the specified version?

| username: TiDBer_小阿飞 | Original post link

Are you referring to the source code compilation and installation method?

| username: 超7成网友 | Original post link

This is indeed a bit uncertain… :disappointed_relieved:

| username: 数据库真NB | Original post link

It should not be installed automatically.