Skip to content

Change InfluxDB Passwords

Niels Korschinsky edited this page Aug 26, 2021 · 1 revision

Change InfluxDB passwords

If any default or template passwords were used, it is highly recommended to change the passwords of all users. If your password is one of the following or similar to it, please change it now!

  1. Log into the InfluxDB via its console
    influx --ssl --unsafeSsl
  2. Authentificate
    auth
    Enter the required information on prompt
  3. Test if you have permissions
    show users

    If this command fails, try to authentificate again.

  4. Set the password for the user
    SET PASSWORD FOR <username> = '<password>'\

    Example: SET PASSWORD FOR "todd" = 'influxdb4ever'

Drop unwanted users

  1. Log into the InfluxDB via its console
    influx --ssl --unsafeSsl
  2. Authentificate
    auth
    Enter the required information on prompt
  3. Test if you have permissions
    show users

    If this command fails, try to authentificate again.

  4. Drop the user
    DROP USER <username>\

    Example: DROP USER "todd"

Clone this wiki locally