How to change the default database port (5432)? #35
-
Hello, is it possible please to change port 5432 that IDDataLogger uses easily ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 80 replies
-
Port 5432 is used by postgresql. You should be able to change it in postgresql.conf and then in the config at db.host you'd need to add ;port=PORTNUMBER to localhost (the full string should be localhost;port=PORTNUM) To give more specific help, I'd need to know what kind of setup you are running (which Operating System, what installation method did you use). |
Beta Was this translation helpful? Give feedback.
-
This is how to change the port which is used for the postgresql database: Note1: There is no need to run a second postgresql server just for IDDataLogger, if you already have one running for another application, you can just create a new empty database with a separate user and set that in IDDataLoggers config. Note2: If you are using VWsFriend (this only applies for setups using the HomeKit docker file) it is easier to simply add If you still want to change the port IDDataLogger uses for its database, you will need to set db.host to
(You'll also need to adjust the port setting in your relevant postgresql.conf, for debian/raspbian usually at |
Beta Was this translation helpful? Give feedback.
-
Hello, I apologize for the time to answer but I finally had a lot of conflict (especially with duplicate postgresql servers) by doing my manipulation without really understanding. I came back to the same situation as last time and all of them are working fine on VWsFriend. For nota 1 if I run the configuration for beginners with the command "" wget https://raw.githubusercontent.com/robske110/IDDataLogger/master/docs/install.sh; bash install.sh; rm install.sh "" I am going to create a second postgresql server, what not to do, if I understood correctly? Nota 2 I have modified the myconfig.env file from VWsFriend by modifying all the lines with 5432 and put 5422 in place, then reboot. For the moment no problem with the configuration with VWsFriend, it works as with the 5432 before. So it remains to know how to create a new empty database with a separate user and define it in the IDDataLoggers configuration ;) |
Beta Was this translation helpful? Give feedback.
This is how to change the port which is used for the postgresql database:
Note1: There is no need to run a second postgresql server just for IDDataLogger, if you already have one running for another application, you can just create a new empty database with a separate user and set that in IDDataLoggers config.
Note2: If you are using VWsFriend (this only applies for setups using the HomeKit docker file) it is easier to simply add
DB_PORT=5422
to the myconfig.env file.If you still want to change the port IDDataLogger uses for its database, you will need to set db.host to
localhost;port=5422
. (You can replace localhost or the number 5422 if needed)The relevant part of the config should lo…