# How to change storage path influxdb2

**URL:** <https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538>\
**Category:** Industrial\
**Created:** [27 April 2024 06:10 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538 "2024-04-27T06:10:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [27 April 2024 06:10 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/1 "2024-04-27T06:10:10Z")

</div>

hello every one,  
i'm running node-red with influxdb2 opcua connect to Siemen Plc, everything working good, but now i need to change the path to save my influxdb data, i installed influxdb using powershell, i don't know nothing about coding, i'm an electrician so please can someone write a config file and show where to put it

thank you in advance

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 April 2024 09:34 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/2 "2024-04-27T09:34:46Z")

</div>

> [@Gravino](#):
>
> change the path to save my influxdb data

What _exactly_ do you mean by that? Do you mean how to configure influxdb to tell it where the database files should be? If so then why do you want to change it from the default?

If that is not what you mean then please explain in more detail.

Which node are you using to write to the db? Possibly node-red-contrib-influxdb.

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [27 April 2024 09:52 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/3 "2024-04-27T09:52:25Z")

</div>

hello Colin,  
yes i want to tell it to save the database in another drive because my C drive is almost full, can you help me to do that please ?

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [27 April 2024 09:53 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/4 "2024-04-27T09:53:46Z")

</div>

i'm using influxdb out

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [27 April 2024 09:59 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/5 "2024-04-27T09:59:54Z")

</div>

for thta i understand now is saing here C:\Users\TD.influxdbv2 i wish to tell it to save on external drive called F

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 April 2024 10:17 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/6 "2024-04-27T10:17:17Z")

</div>

That isn't a node red question, it is influxdb. On linux systems the config file is /etc/influxdb/influxdb.conf, and the locations for the various file components can be found there. I don't use windows so don't know where it is on Windows, but no doubt googling for something like  
Where is the influxdb configuration file on windows  
will help you.

---

<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:** [27 April 2024 10:17 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/7 "2024-04-27T10:17:54Z")

</div>

The answer is just an Internet search away:

> **[influxdb change storage location at DuckDuckGo](https://duckduckgo.com/?q=influxdb%2Bchange%2Bstorage%2Blocation&t=vivaldi&ia=web)**
>
> DuckDuckGo. Privacy, Simplified.

This isn't a Node-RED question since, as Colin says, you change locations from InfluxDB settings.

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [27 April 2024 10:34 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/8 "2024-04-27T10:34:51Z")

</div>

sorry i tried every thing but nothing working i know i'mthe biggest problem  
i'm searching for 1 week on internet but i don't know how to use what i found

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 April 2024 10:54 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/10 "2024-04-27T10:54:28Z")

</div>

Having tried the search I suggested I found

> <https://stackoverflow.com/questions/72024151/where-is-influxdb-conf-in-influxdb2-2windows>

Which tells me that it has all changed with v2 of Influxdb, so you will have to follow the instructions linked there. I don't use v2, I am waiting for the next major release when they are hopefully reverting to sql type queries again.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 April 2024 08:40 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/11 "2024-04-28T08:40:58Z")

</div>

I see you have now posted another question. If that means you have found the solution to the problem here then please select one of the answers as the solution, or add another post so that we know the thread is complete.

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [28 April 2024 10:21 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/12 "2024-04-28T10:21:19Z")

</div>

hello Colin  
this night i tried this but i'm not sure that i completly working

.\influxd.exe --engine-path "F://InfluxData"

because now i see data stored in my external drive but i'm not sure that is not saving on C becausei still see Data on C....like i say i'm good to write code i will perfom some test and see what happen

---

<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:** [28 April 2024 12:17 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/13 "2024-04-28T12:17:47Z")

</div>

InfluxDB uses "sharding" so you may well find older shards still on your C: drive I would imagine. I've never looked into it though myself so I'm not certain.

---

<div class="post-metadata">

**Author:** ![Gravino](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gravino](https://discourse.nodered.org/u/Gravino)\
**Post date:** [28 April 2024 12:43 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/14 "2024-04-28T12:43:23Z")

</div>

i checked just now the amount of data in C is not changing on F wel

---

<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:** [28 April 2024 14:11 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/15 "2024-04-28T14:11:26Z")

</div>

At this point, you will be better off going to the InfluxDB forum as people there should have more in-depth knowledge.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 June 2024 14:11 UTC](https://discourse.nodered.org/t/how-to-change-storage-path-influxdb2/87538/16 "2024-06-27T14:11:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
