Postgres
Postgres
Workshop
18 DE OCTUBRE DE 2022
IES FRANCISCO ROMERO VARGAS
PostgreSQL | oscar alvarez lucas
POSTGRES INSTALLATION 1
First of all, we have to install the package to work with postgresql, to do that introduce the
following command in CLI.
We can create a database from outside the database on the Debian’s CLI
PostgreSQL | oscar alvarez lucas
To connect to another database which is not postgres database we can use “\c database”
To allow the remote access on our postgres database we need to listen all the addresses, we can
change it on the postgresql.conf file which is located in the postgres directory.
To allow al the IPv4 connection, not only localhost, we have to change in the pg_hba.conf file the
line under “IPv4 local connections:” and change the range of IPs to 0.0.0.0/0 to make it works.
PostgreSQL | oscar alvarez lucas
Now we are going to try connecting from other Debian VM with postgresql-client installed.