This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dev:postgres [2024/12/08 05:53] – 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: |