InfluxDB Field bzw. Item löschen

Hier bitte alles rein was Off-topic ist.

Moderatoren: Cyrelian, seppy

Antworten
ML_1982
Beiträge: 25
Registriert: 5. Jan 2022 20:48

InfluxDB Field bzw. Item löschen

Beitrag von ML_1982 »

Ich habe den Datentyp eines ITEMs geändert und daher kann Openhab die Daten nicht mehr in die InfluxDB schreiben. (Siehe Screenshot)
2022-04-24_18h20_02.png
Wie lösche ich nun alle Daten des Items, damit Openhab die neuen Daten in die Datenbank schreiben kann?

in das CLI von Influx komme ich, aber wie geht es dann weiter?

Code: Alles auswählen

openhabian@openhabian:~ $ sudo influx
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> show databases
ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
> use openhab
ERR: unable to parse authentication credentials
DB does not exist!
> delete
ERR: unable to parse authentication credentials
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
>
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.

ML_1982
Beiträge: 25
Registriert: 5. Jan 2022 20:48

Re: InfluxDB Field bzw. Item löschen

Beitrag von ML_1982 »

ich habs geschafft:

Code: Alles auswählen

openhabian@openhabian:~ $ influx -database openhab -username openhab -password ****mySecret***
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> SHOW DATABASES
name: databases
name
----
openhab
> DELETE FROM "SpulmaschineStartZeitpunkt"

Antworten