Skip to content

Create a Postgres user and database

2016.02.01
postgresdatabasesql
CREATE USER myuser WITH PASSWORD 'mypassword';
CREATE DATABASE mydb;
GRANT ALL PRIVILEGES ON DATABASE mydb TO myuser;