User Tools

Site Tools


dev:postgres

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:postgres [2024/12/08 05:53] adamdev: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.
  
-    sudo -u postgres psql +  sudo -u postgres psql 
-    postgres=# create database mydb; +  postgres=# create database mydb; 
-    postgres=# create user myuser with encrypted password 'mypass'; +  postgres=# create user myuser with encrypted password 'mypass'; 
-    postgres=# grant all privileges on database mydb to myuser;+  postgres=# grant all privileges on database mydb to myuser; 
 +   
 + 
 +https://stackoverflow.com/a/75876944/1173856
  
 to enable logins from external systems:  to enable logins from external systems: 
dev/postgres.txt · Last modified: 2024/12/08 21:30 by adam