简体   繁体   中英

Are there any ways to set specified default username and password in TiDB docker-compose file?

Based on TiDB official docker compose article, it sets default username/password to root/"" https://docs.pingcap.com/zh/tidb/v3.0/deploy-test-cluster-using-docker-compose

Does anyone know how to set default username/password in the following YAML? ex: tidb/passwd

docker-compose.yml is in the following link:

https://github.com/pingcap/tidb-docker-compose

It does not set any username or password, the root/"" is just the default value of TiDB.

The YAML files in that repo do not support setting username and password. You can set them manually after the creation.

BTW, the tidb-docker-compose repo was not maintained for a long time, suggest deploying the TiDB cluster with kind , then you can initialize the
TiDB Cluster following the doc .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM