Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Latest commit

 

History

History
80 lines (54 loc) · 1.51 KB

postgresql.org

File metadata and controls

80 lines (54 loc) · 1.51 KB

PostgreSQL configuration files

Ambos archivos deben de ir en $HOME

Connection service file ( .pg_service.conf )

Documentación

Para conectarme con psql

psql service=ccd-db
#ccd
[ccd]
host=localhost
port=5444
user=postgres
dbname=postgres

# ccd-itam
[itam]
host=localhost
port=5444
user=nanounanue
dbname=itam

# ccd-amai
[amai]
host=localhost
port=5444
user=nanounanue
dbname=amai_2019


# cmu
[cmu]
host=localhost
port=2345
user=nanounanue
dbname=postgres 

Passwords ( .pgpass )

Documentación

Debe de tener esta forma:

hostname:port:database:username:password
cp '/home/nanounanue/pCloudDrive/Crypto Folder/.pgpass' .

Sus permisos deben de ser 0600

chmod 0600 .pgpass