Dominik Süß

fighting computers since 1999

in sysadmin

Create a database and user in PostgreSQL


CREATE DATABASE mydb;
CREATE USER myuser WITH ENCRYPTED PASSWORD 'mypass';
GRANT ALL PRIVILEGES ON DATABASE mydb TO myuser
-- pg 15+
\c mydb
GRANT ALL ON SCHEMA public TO myuser;