Difference between revisions of "$HOME/.pg service.conf"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 12: Line 12:
 
  https://stackoverflow.com/a/39097994
 
  https://stackoverflow.com/a/39097994
  
  [hansservice]
+
  [MySecondDB]
 
  host=localhost
 
  host=localhost
  port=5432
+
  port=[[5432]]
 
  dbname=test
 
  dbname=test
  user=hs
+
  user=admin
  password=abc
+
  password=your_password
  
  

Revision as of 08:31, 9 September 2021

touch .pg_service.conf
# My comment for mydb
[MyDB] 
host=somehost 
port=5433 
user=admin


psql service=MyDB
https://stackoverflow.com/a/39097994
[MySecondDB]
host=localhost
port=5432
dbname=test
user=admin
password=your_password


Related terms

See also

Advertising: