# InfluxDB+Grafana persistence and graphing

**URL:** <https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761>\
**Category:** Tutorials & Examples\
**Tags:** influxdb, graphs, grafana\
**Created:** [September 1, 2016, 5:56pm UTC](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761 "2016-09-01T17:56:35Z")\
**Posts on this page:** 1\
**Showing post:** 798

<div class="post-metadata">

**Author:** ![Johannes\_Bauerstatte](https://community.openhab.org/user_avatar/community.openhab.org/johannes_bauerstatte/32/37785_2.png) [@Johannes\_Bauerstatte](https://community.openhab.org/u/Johannes_Bauerstatte)\
**Post date:** [September 29, 2019, 10:37am UTC](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761/798 "2019-09-29T10:37:09Z")

</div>

I made a new clean install of openHAB 2.5.0.M3 Milestone Build. Then I installed InfluxDB+Grafana through the openhabian Configuration Tool. All went fine but when I wanted to create the Database with

> influx  
> CREATE DATABASE openhab\_db

I get this error:

> 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 ”.

I don´t know what I have missed.  
User:

> [12:29:05] openhabian@openhab:~$ influx

Grafana website works.  
I also tried the solution from chris669

> OK, Reply to myself… After investigating through the forum, I’ve seen this [post](https://community.openhab.org/t/problems-installing-influxdb/62098/14) and now for those who encountered the same problem, beware, the script installing InfluxDB and Grafana doesn’t do all the job. **DATABASE is not installed!**  
> In my case, after a clean install, I had to proceed this way:  
> sudo chown -hR openhab:openhab /etc/openhab2  
> sudo chown openhab:openhabian /etc/openhab2/services/influxdb.cfg  
> influx -port 8086 -username myusername -password mypassword -host localhost  
> CREATE DATABASE openhab\_db  
> CREATE USER myusername WITH PASSWORD ‘mypassword’ WITH ALL PRIVILEGES  
> CREATE USER openhab WITH PASSWORD ‘myopenhabpassword’  
> CREATE USER grafana WITH PASSWORD ‘mygrafanapassword’  
> GRANT ALL ON openhab\_db TO openhab  
> GRANT READ ON openhab\_db TO grafana

But it doesn´t work.

---

_[View the full topic](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761)._
