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:
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.