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 5: Line 5:
 
  [MyDB]  
 
  [MyDB]  
 
  host=somehost  
 
  host=somehost  
  port=5433
+
  port=5432
 
  user=admin
 
  user=admin
  

Revision as of 08:32, 9 September 2021

touch .pg_service.conf
# My comment for mydb
[MyDB] 
host=somehost 
port=5432 
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: