Password Change Impact and Remediation
After a database user password is changed (ALTER USER ... PASS), the server detects and closes connections
created with the old password on heartbeat; subsequent requests fail with an authentication error
(0x80000357). The connection performing the change and token connections are not affected.
Other components, tasks, and external systems usually still keep the old password and must be updated manually. If they are not updated, monitoring, data synchronization, or external integrations stop working, sometimes without a visible error.
Impact
| Location | Symptom after the password change | Action |
|---|---|---|
| Explorer and other client sessions | Sessions using the old password are closed; queries fail with authentication errors | Sign in again; update other clients and reconnect |
| taosKeeper | Cannot write monitoring data; log.* tables stop updating; the Explorer monitoring page shows every component offline or without data | Update [tdengine] username/password in taoskeeper.toml and restart |
XNode (xnoded daemon) | Fails to connect to taosd with the old credential; SHOW XNODES shows offline and tasks cannot run | Update the daemon credential with ALTER XNODE SET |
| Existing XNode tasks | Data in/out, backup/restore, and active-active replication tasks keep the old password in their DSNs and fail | Sign in again, then re-save the task or recreate it |
| External systems | Grafana/TDinsight, Telegraf, applications, connectors, BI tools, and scripts cannot connect | Update their connection strings or secrets |
| Tokens | Not affected by a password change | Rotate or revoke them separately if needed |
taosKeeper uses
root/taosdataby default. Changing therootpassword is the easiest case to miss.
Steps
1. Sign in again
- Sign in to Explorer with the new password. Sessions created before the change are closed by the server, and the old credential cached in the browser becomes invalid.
- Update the password in other applications and scripts, then reconnect.
- Requests over old-password connections fail with
0x80000357; this is expected.
2. Update taosKeeper
Edit the taosKeeper configuration file (default /etc/taos/taoskeeper.toml):
[tdengine]
host = "127.0.0.1"
port = 6041
username = "root"
password = "<new_password>"
Then restart taosKeeper (for example systemctl restart taoskeeper, or restart the corresponding container).
If taosKeeper is started with command-line options, update --tdengine.username / --tdengine.password too.
The enterprise audit feature uses the same [tdengine] credential; no separate configuration is needed.
3. Update the XNode credential
The XNode credential is cluster-wide. It is used by the xnoded daemon to connect to taosd, and it is
not stored per XNode endpoint. After changing the database password, run:
-- User/password mode (replace <user> and <new_password>)
ALTER XNODE SET USER <user> PASS '<new_password>';
-- Or token mode
ALTER XNODE SET TOKEN '<token>';
Notes:
ALTER XNODE SETupdates the daemon credential and restartsxnoded, briefly interrupting XNode tasks. Do not run it repeatedly in a short period.USER ... PASS ...orTOKEN ...inCREATE XNODEonly take effect when the cluster has no XNode credential yet (first creation).- When a credential already exists,
CREATE XNODEwith a new URL and the same credential passes the credential consistency check; the same URL still returns an already-exists error. A different credential returns0x8000802Cand no node is created. DROP XNODEremoves only the node registration; it does not delete the credential record. Recreating a node does not update the credential. UseALTER XNODE SETto change it.
4. Update existing XNode tasks
Data in/out, backup/restore, and active-active replication tasks store connection strings (including credentials) when they are created. After the password change:
- Sign in to Explorer with the new password.
- Open each task and save the connection again (the UI rebuilds the DSN with the current login credential).
- Or delete and recreate the task.
Signing in again alone does not update credentials already saved in tasks. Check every running task.
5. Update external systems
Update the password or connection string for any system that uses this account to connect to TDengine:
- Grafana / TDinsight TDengine data sources;
- Telegraf and other collectors;
- Applications, JDBC/ODBC connectors, BI tools, and scheduled scripts (
taosdump,taosBenchmark, etc.).
Verification
- The Explorer monitoring page shows component data again and taosKeeper writes normally.
SHOW XNODESshows the affected nodes back inonlinestate.- Data in/out, backup/restore, and active-active replication tasks run normally.
- External system connection tests pass.