Answers for "postgres assign user to db"

SQL
69

create db user postgres

sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Posted by: Guest on September-01-2020
0

postgresql create user roles

CREATE ROLE admin WITH CREATEDB CREATEROLE;
Posted by: Guest on July-22-2020

Code answers related to "postgres assign user to db"

Code answers related to "SQL"

Browse Popular Code Answers by Language