psql create user
snippet in sql

how to create a new user in postgresql

user6992

CREATE DATABASE yourdbname;CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;

psql create user

user8553

# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';

How do I add a user to a postgres database? cli

user6407

psql=# grant all privileges on database <dbname> to <username>

create user and password postgres

user5866

dropuser username