...
https://www.sqlshack.com/setting-up-a-postgresql-database-on-mac/
Code Block |
---|
brew install postgres |
/usr/local/var/pg_hba.conf
/usr/local/var/pg_hba.conf
Setup Postgres Server - Windows
...
Edit pg_hba.conf and allow Users access the database.
File location pg_hba.conf
Windows: C:\Program Files\PostgreSQL\14\data\pg_hba.conf
MacOS: /usr/local/var/pg_hba.conf
configure access to the database
edit
postgresql.conf
Windows:C:\Program Files\PostgreSQL\14\data\postgresql.conf
MacOS:/usr/local/var/postgresql.conf
edit line:
listen_addresses = '*'
allow User access
edit
pg_hba.conf
edit block:
Code Block |
---|
# TYPE DATABASE USER CIDR-ADDRESS METHOD host all all 0.0.0.0/0 md5trust |