This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:postgres [2024/12/08 05:42] – adam | dev:postgres [2024/12/08 21:30] (current) – adam | ||
---|---|---|---|
Line 1: | Line 1: | ||
create user, and then database for that user. | create user, and then database for that user. | ||
- | | + | |
- | postgres=# create database mydb; | + | postgres=# create database mydb; |
- | postgres=# create user myuser with encrypted password ' | + | postgres=# create user myuser with encrypted password ' |
- | postgres=# grant all privileges on database mydb to myuser; | + | postgres=# grant all privileges on database mydb to myuser; |
+ | |||
+ | |||
+ | https:// | ||
to enable logins from external systems: | to enable logins from external systems: | ||
Line 10: | Line 13: | ||
find in there '' | find in there '' | ||
+ | |||
+ | pga_hba.conf is probably right next to it. add these: | ||
+ | |||
+ | host all | ||
+ | host all | ||
+ | |||
+ |