# Influx DB Out node with two databases

**URL:** https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057
**Category:** General
**Created:** [13 May 2019 07:17 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057 "2019-05-13T07:17:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)
#### Post date: [13 May 2019 07:17 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/1 "2019-05-13T07:17:01Z")

</div>

Using two databases from one Node-RED installation I discover an issue, maybe someone can help me. Running MQTT, InfluxDB and Node-RED on a RPi with IP-addres xxx.xxx.xxx.160 I can set the Influx DB Out Node to write to the database which is installed on xxx.xxx.xxx.160.

Running another Node-RED flow on the same xxx.xxx.xxx.160 installation, I would like to write to another Influx RPi installation on xxx.xxx.xxx.185.

Things went wrong when editing the DB Out Nodes to select the required database (.160 or .185). When I edit one of them the other is also changed and vice-versa. So it looks if I cannot use two databases from one Node-RED installation. Can someone give me advice how to solve this.

 ![DB](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fa3c723c9bd46b3b94f6262194e4a36345a48c7e.png)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [13 May 2019 09:07 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/2 "2019-05-13T09:07:53Z")

</div>

why not install N0de-RED on RPI xxx.xxx.xxx.185 and use MQTT to send the data to that NR

---

<div class="post-metadata">

### Author: ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)
#### Post date: [13 May 2019 09:38 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/3 "2019-05-13T09:38:16Z")

</div>

It's because I prefer to use them separate: the x.160 is for testing and the x.185 (with loads of memory) is my actual database.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [13 May 2019 10:23 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/4 "2019-05-13T10:23:18Z")

</div>

In the InfluxDB out node you can create more than one configuration. If you click on the dropdown box next to Server there is an option to add another server.

---

<div class="post-metadata">

### Author: ![HaVi](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@HaVi](https://discourse.nodered.org/u/HaVi)
#### Post date: [13 May 2019 12:11 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/5 "2019-05-13T12:11:23Z")

</div>

Thanks ghayne, I did not know that and it works as you described 😉

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [13 May 2019 15:30 UTC](https://discourse.nodered.org/t/influx-db-out-node-with-two-databases/11057/6 "2019-05-13T15:30:22Z")

</div>

You also don't need the InfluxDB node at all really. I generally don't bother with it. You can use the http-request node and send the request direct to the InfluxDB web interface.
