Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 使用tiup安装tidb,用test账号做的互信,现在修改了test的用户密码,下一步需要怎么做?
【TiDB Usage Environment】Production Environment / Testing / PoC
Testing
【TiDB Version】
v5.0.1
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Phenomenon and Impact】
Installed TiDB using tiup, established mutual trust with the test account, and now the test user’s password has been changed. What should be done next?
【Resource Configuration】
【Attachments: Screenshots / Logs / Monitoring】
Changing only the password does not affect mutual trust.
If you mean that mutual trust has expired, then copy the content of /home/tidb/.tiup/storage/cluster/clusters/ClusterName/ssh/id_rsa.pub to the ~/.ssh/authorized_keys file on each machine.
Mutual trust can be skipped. Just use the -p parameter to input the password during installation, and all passwords should be the same.
Once and for all
It is recommended to run the script with the root user for mutual trust
./sshUserSetup.sh -user tidb -hosts "192.168.80.131 192.168.80.132 192.168.80.133 192.168.80.134 192.168.80.135" -advanced exverify -confirm
The script is as follows:
sshUserSetup.sh (32.6 KB)
Keep answering yes, yes
Just press enter without any prompts
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.