Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb修改root密码报错
Error when changing the root password in TiDB
-
First execute:
tiup cluster edit-config tidb-test
-
Then execute:
tiup cluster reload tidb-test
-
The TiDB cluster is deployed on a single machine. SSH is interconnected.
There shouldn’t be any issues with the process of changing the password, so why is this error being reported? I can’t find the reason for a while.
Don’t change it like this. Directly log in to the TiDB server machine, modify the TiDB server configuration file tidb.toml
, then use systemctl
to restart the TiDB service, and finally log in locally to change the password.
The official documentation provides instructions on how to reset the password if you forget it, not like what you mentioned.
Tested, this modification works.
Modifications should be possible, but the original mutual trust should be re-established.
According to the official documentation, make modifications.
According to the official modifications, there are no issues.
The importance of reading documentation.
Got it, to summarize, it’s still similar to the modification method of MySQL.
Check the official documentation for modifications.
Just follow the official documentation.
Refer to the official documentation.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.