Hi,
I would like to create database of PostgreSQL using Node-RED, but when searching with "postgre" keyword, all nodes need to configure database name.
I tried to use the exec node but don't know what the input command is right.
Can I create the database using node-red?
In exec node, I enter psql -U postgres, the password entry line appears on the cmd side, after I enter password, the node-red side is still connected and not finished.
@dceejay, @TotallyInformation The input password to login is necessary for security reasons, so I did not think that can set to bypass the password input so I did not ask google first, it bothers you @@.
Thanks for the instructions!
After setting up bypass password when executing command "psql -U postgres". I input the following command in the Command of exec node:
psql -U postgres;CREATE DATABASE dbTest;
...but still start entering the password of CREATE on the cmd side, I tried to enter the password of the postgres user and it got an error: