Skip to main content

Postgresql

 

\l < list databases

create database:

CREATE DATABASE database;

delete database:

DROP DATABASE database;

grant admin to user on new db:

GRANT ALL PRIVILEGES ON DATABASE database TO user;