This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:postgres [2023/02/14 06:07] – created - external edit 127.0.0.1 | 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: | ||
+ | find / -name " | ||
+ | |||
+ | find in there '' | ||
+ | |||
+ | pga_hba.conf is probably right next to it. add these: | ||
+ | |||
+ | host all | ||
+ | host all | ||
+ |