docs-v2/content/influxdb/v2.2/users/recover-credentials.md

1.6 KiB

title seotitle description menu weight products related
Recover user credentials Recover InfluxDB user credentials Recover InfluxDB user credentials using the influx CLI.
influxdb_2_2
name parent
Recover credentials Manage users
106
oss
/influxdb/v2.2/reference/cli/influxd/recovery/

Use the influxd command line interface (CLI) to recover user credentials and regain access to your InfluxDB instance:

Update a password

To update a password, run the following:

influxd recovery user update \
  --username example-username \
  --password ExAmPL3-paS5W0rD

{{% note %}} Note: If you're not sure of the username, list existing users in the InfluxDB instance or create a user for recovery purposes. {{% /note %}}

List existing users in the InfluxDB instance

To list existing users in the system, run the following:

influxd recovery user list

{{% note %}} If you used a custom bolt-path when starting InfluxDB, provide your custom bolt path to the influx recovery user list command with the --bolt-path flag. {{% /note %}}

Create a user for recovery purposes

To create a new user for recovery purposes, run the following:

influxd recovery user create \
  --username example-username \
  --password ExAmPL3-paS5W0rD