Skip to main content

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​

LocationSymptom after the password changeAction
Explorer and other client sessionsSessions using the old password are closed; queries fail with authentication errorsSign in again; update other clients and reconnect
taosKeeperCannot write monitoring data; log.* tables stop updating; the Explorer monitoring page shows every component offline or without dataUpdate [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 runUpdate the daemon credential with ALTER XNODE SET
Existing XNode tasksData in/out, backup/restore, and active-active replication tasks keep the old password in their DSNs and failSign in again, then re-save the task or recreate it
External systemsGrafana/TDinsight, Telegraf, applications, connectors, BI tools, and scripts cannot connectUpdate their connection strings or secrets
TokensNot affected by a password changeRotate or revoke them separately if needed

taosKeeper uses root / taosdata by default. Changing the root password 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 SET updates the daemon credential and restarts xnoded, briefly interrupting XNode tasks. Do not run it repeatedly in a short period.
  • USER ... PASS ... or TOKEN ... in CREATE XNODE only take effect when the cluster has no XNode credential yet (first creation).
  • When a credential already exists, CREATE XNODE with a new URL and the same credential passes the credential consistency check; the same URL still returns an already-exists error. A different credential returns 0x8000802C and no node is created.
  • DROP XNODE removes only the node registration; it does not delete the credential record. Recreating a node does not update the credential. Use ALTER XNODE SET to 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:

  1. Sign in to Explorer with the new password.
  2. Open each task and save the connection again (the UI rebuilds the DSN with the current login credential).
  3. 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 XNODES shows the affected nodes back in online state.
  • Data in/out, backup/restore, and active-active replication tasks run normally.
  • External system connection tests pass.